mIRC Home    About    Download    Register    News    Help

Print Thread
#25742 24/05/03 05:15 AM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
on *:disconnect: {
did -r nalert 11
}

give "/did: invalid parameters". is /did only useable within
on *:dialog ?

#25743 24/05/03 06:25 AM
Joined: Mar 2003
Posts: 63
N
Babel fish
Offline
Babel fish
N
Joined: Mar 2003
Posts: 63
Well, you'd need your nalert dialog to be open at that time, I shouldn't see why you couldn't do a /did command on an event... grin

#25744 24/05/03 06:34 AM
Joined: Mar 2003
Posts: 54
J
Babel fish
Offline
Babel fish
J
Joined: Mar 2003
Posts: 54
A safer way would be to check if the dialog is open before doing anything.
Code:
on *:disconnect:if ($dialog(nalert)) did -r nalert 11


#25745 24/05/03 06:41 AM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Oh ya, the dialog must be present! Thks for reminding me!

#25746 24/05/03 02:42 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
or you cud use this to make it open on dissconnect smile

on *:DISCONNECT: {
if (!$dialog(nalert)) {
dialog -m nalert nalert
did -r nalert id
}
else {
did -r nalert id
}
}


new username: tidy_trax
#25747 24/05/03 09:53 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Why u ppl always do so much code >:\

on 1:DISCONNECT: {
if (!$dialog(nalert)) /dialog -m nalert nalert
/did -r nalert 11
}


-KingTomato
#25748 25/05/03 12:24 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
lol blush


new username: tidy_trax

Link Copied to Clipboard