Another IRC scripting question [message #273946] |
Tue, 17 July 2007 21:48 |
|
BlueThen
Messages: 2402 Registered: February 2006
Karma: 0
|
General (2 Stars) |
|
|
Any way to get a parameter string to retrieve a dns of a certain ip?
It'd make life a lot easier.
I couldn't get $dns to work... if retrieving a dns is what it's supposed to do.
BTW, don't tell me to try /help. I already tried it.
[Updated on: Tue, 17 July 2007 21:49] Report message to a moderator
|
|
|
|
|
|
Re: Another IRC scripting question [message #274049 is a reply to message #273946] |
Wed, 18 July 2007 11:58 |
Tunaman
Messages: 1190 Registered: January 2005
Karma: 2
|
General (1 Star) |
|
|
I read your post. It clearly states in the help file how to use it.. :\ Please actually read the help file if you're going to get mad over people telling you to read it. It is very easy to understand.
|
|
|
|
Re: Another IRC scripting question [message #274079 is a reply to message #273946] |
Wed, 18 July 2007 14:31 |
|
Cat998
Messages: 1081 Registered: January 2004 Location: Austria, Vienna
Karma: 0
|
General (1 Star) Moderator/Captain |
|
|
You are talking about the programm mIRC in this topic I guess...
If you want to use this you need to know how to use mIRC Remote script events.
Everything about mIRC scripting is explained in its help file.
Because mIRC first has to ask a DNS server, there is a delay,
and therefore there is no identifier returning something,
but an alias event getting called when the reply of the DNS server is received.
Quote: | on DNS
The on DNS event triggers when a /dns query either succeeds or fails.
Format: on <level>:DNS:<commands>
Example: on 1:DNS:/notice $me Resolved: $raddress
Examples
on 1:DNS:{
var %n = $dns(0)
echo 4 Found %n addresses
while (%n > 0) {
echo 4 dns: $dns(%n) nick: $dns(%n).nick addr: $dns(%n).addr ip: $dns(%n).ip
dec %n
}
}
Note: This event is also triggered if you try to /dns a nickname, and the nickname is not on IRC.
The $dns(N) identifier
This identifier can be used only in the on DNS event, and returns the address that was resolved and any associated IP addresses.
Properties: nick, addr, ip
$dns(N) without a property returns the address being resolved.
You can use N = 0 to return the number of addresses found.
You can use $dns(0).nick/addr/ip to reference properties if an address couldn't be resolved.
|
When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"
Programming is like sex: one mistake and you have to support it for the rest of your life
Want the best answers? Ask the best questions!
"So long, and thanks for all the fish."
[Updated on: Wed, 18 July 2007 14:39] Report message to a moderator
|
|
|
Re: Another IRC scripting question [message #274327 is a reply to message #274079] |
Thu, 19 July 2007 19:18 |
|
BlueThen
Messages: 2402 Registered: February 2006
Karma: 0
|
General (2 Stars) |
|
|
Well, since I can't get a parameter string to retrieve a dns or anything,
I got another question... I can't get a simple command like this:
/write -ils$remove($strip($13),$chr(41)) test.txt - $3
to work. Is there any way to get a parameter string to work with a switch?
[Updated on: Thu, 19 July 2007 19:18] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Another IRC scripting question [message #275360 is a reply to message #275343] |
Tue, 24 July 2007 19:23 |
|
Cat998
Messages: 1081 Registered: January 2004 Location: Austria, Vienna
Karma: 0
|
General (1 Star) Moderator/Captain |
|
|
AmunRa wrote on Wed, 25 July 2007 00:39 |
Private Sub Form_Load()
MsgBox "hay thar world!", vbCritical
Unload Me
End Sub
|
Go away
When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"
Programming is like sex: one mistake and you have to support it for the rest of your life
Want the best answers? Ask the best questions!
"So long, and thanks for all the fish."
|
|
|