mIRC Home    About    Download    Register    News    Help

Print Thread
#153870 24/07/06 02:16 AM
Joined: Mar 2006
Posts: 16
B
brantje Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Mar 2006
Posts: 16
on 1:CONNECT:{
/splay sounds\connect.wav
wait 5000
/join #channel1
/join #channel2
}
It must wait 5 sec before joining the channels

#153871 24/07/06 02:48 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
This has been asked for before in the Feature Suggestion forum. Until it gets implemented, if at all, you can use:

Code:
on 1:CONNECT:{
  /splay sounds\connect.wav
  /timerconnect 1 5 /join #channel1 $chr(124) /join #channel2
}


The $chr(124) is the | (pipe) to separate commands


Those who fail history are doomed to repeat it
#153872 14/08/06 04:31 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Why wait 5 second? So you are nickserv registered?

Assuming you have script to identify with nickserv... Try this instead... Handle events "on text" and "on notice" from nickserv. If a test of the message contains "password accepted" or other valid matching conditions; you are registered and you can join your channels now. wink

Although I don't suggest using it in "on connect"... Here is a good sleep script. I tried to find the original post to credit the author, but the post seems to be lost in the forum void. I patched it (for this post) using %PROGRAM and %TIME so the last $com line isn't so long.

Code:
sleep {
  set -u0 %PROGRAM pathping.exe -n -w 1 -q 1 -h 1 -n -p
  set -u0 %TIME $iif($1 > 40,$calc($1 - 40),$1)
  if ($1 !isnum 1-) return
  var %wsh = wsh $+ $ticks
  .comopen %wsh wscript.shell
  .comclose %wsh $com(%wsh,run,1,bstr*,%PROGRAM %TIME 127.0.0.0,uint,0,bool,true)
}


NaquadaBomb
www.mirc-dll.com

Link Copied to Clipboard