mIRC Homepage
Posted By: littlecramp delay command? - 23/01/03 12:38 PM
Other than timer, is there any command to delay executing script?
Posted By: Online Re: delay command? - 23/01/03 12:43 PM
yes, get it here, although it won't work always. only built-in command will do the trick...
Posted By: Gon_ Re: delay command? - 23/01/03 01:41 PM
I use that code a lot.. its great laugh

Should be built-in though yeah...
Posted By: littlecramp Re: delay command? - 23/01/03 06:00 PM
What do i need to change to make the /sleep work? The instruction indicate that it will work with wscript run method!
Posted By: Online Re: delay command? - 23/01/03 06:37 PM
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
Posted By: littlecramp Re: delay command? - 23/01/03 07:53 PM
Thanks for your answer!
Posted By: Online Re: delay command? - 23/01/03 07:55 PM
Welcome smile
Posted By: tontito Re: delay command? - 04/02/03 12:13 PM
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?
© mIRC Discussion Forums