mIRC Home    About    Download    Register    News    Help

Print Thread
delay command? #7971
23/01/03 12:38 PM
23/01/03 12:38 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
littlecramp  Offline OP
Vogon poet
L

Joined: Jan 2003
Posts: 127
Other than timer, is there any command to delay executing script?

Re: delay command? #7972
23/01/03 12:43 PM
23/01/03 12:43 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Online  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...

Re: delay command? #7973
23/01/03 01:41 PM
23/01/03 01:41 PM
Joined: Dec 2002
Posts: 56
G
Gon_ Offline
Babel fish
Gon_  Offline
Babel fish
G

Joined: Dec 2002
Posts: 56
I use that code a lot.. its great laugh

Should be built-in though yeah...

Re: delay command? #7974
23/01/03 06:00 PM
23/01/03 06:00 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
littlecramp  Offline OP
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!

Re: delay command? #7975
23/01/03 06:37 PM
23/01/03 06:37 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Online  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

Re: delay command? #7976
23/01/03 07:53 PM
23/01/03 07:53 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
littlecramp  Offline OP
Vogon poet
L

Joined: Jan 2003
Posts: 127
Thanks for your answer!

Re: delay command? #7977
23/01/03 07:55 PM
23/01/03 07:55 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Online  Offline
Hoopy frood
O

Joined: Dec 2002
Posts: 1,922
Welcome smile

Re: delay command? #7978
04/02/03 12:13 PM
04/02/03 12:13 PM
Joined: Feb 2003
Posts: 307
Portugal
T
tontito Offline
Fjord artisan
tontito  Offline
Fjord artisan
T

Joined: Feb 2003
Posts: 307
Portugal
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?