mIRC Home    About    Download    Register    News    Help

Print Thread
#7971 23/01/03 12:38 PM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Other than timer, is there any command to delay executing script?

#7972 23/01/03 12:43 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
yes, get it here, although it won't work always. only built-in command will do the trick...

#7973 23/01/03 01:41 PM
Joined: Dec 2002
Posts: 56
G
Babel fish
Offline
Babel fish
G
Joined: Dec 2002
Posts: 56
I use that code a lot.. its great laugh

Should be built-in though yeah...

#7974 23/01/03 06:00 PM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
What do i need to change to make the /sleep work? The instruction indicate that it will work with wscript run method!

#7975 23/01/03 06:37 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Actually you don't have to change anything, but expect errors if you call it from an event (Join, Text, Sockopen etc).

If you do have an error, and want to get around this, instead of -
Code:
On *:event:{
  command
  sleep ...
  command
}


Use -

Code:
On *:event:{
   .signal myscript [color:green]parameters ($nick, $chan, $1- etc)[/color]
}

On *:signal:myscript:{
  command
  sleep ...
  command
}


The /sleep command itself should work for you. try the example included in the code. If it doesn't work, you'll probably have to upgrade your Windows Script Host. get it here

#7976 23/01/03 07:53 PM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Thanks for your answer!

#7977 23/01/03 07:55 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Welcome smile

#7978 04/02/03 12:13 PM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
this sleep code is nice but you are limited to just one sleep at a time and takes some cpu time to start to run.
this realy should be implemented in mirc!

don't you think?


Link Copied to Clipboard