mIRC Home    About    Download    Register    News    Help

Print Thread
#125245 15/07/05 10:52 PM
S
SteeleR
SteeleR
S
with timer 1 5 .echo -q $zzz(aaa) ... i want to perform the $zzz(aaa) command after 5 secs .. but ... it's executed imidiately ... how can i avoid that ?...
10x

setting the 'aaa' value in the name of the timer is the only way out ?

Last edited by SteeleR; 15/07/05 10:54 PM.
#125246 16/07/05 01:30 AM
M
mIRCManiac
mIRCManiac
M
timer 1 5 .echo -q $!zzz(aaa)

#125247 16/07/05 05:11 AM
S
SteeleR
SteeleR
S
nice decision, but now when the $zzz(aaa) command is executed ... it takes the current aaa value .. not the one that used to be when the timer was called smile

Last edited by SteeleR; 16/07/05 06:23 AM.
#125248 16/07/05 05:56 AM
D
DaveC
DaveC
D
timer 1 5 .echo -q $!zzz( aaa )

of course since aaa is a literal its gonna be the same in this example, however

//set %aaa 1
//timer 1 5 .echo -q $!zzz(%aaa)
//set %aaa 2
well produuce a 5 second delay and then .echo -q $zzz(%aaa) being $zzz(2)

verses

//set %aaa 1
//timer 1 5 .echo -q $!zzz( %aaa )
//set %aaa 2
well produce a 5 second delay and then .echo -q $zzz( 1 )

This is becuase when the %aaa is stuck up hard against the $!zzz aka unevaluated $zzz, it simply becomes part of the unevaluated identifier

For your info
There well of course come times when you cant avoid having a value get evaluated, since it must have a space at the front
such as
//set %value 1
//timer 100 1 echo -a at $!time the special value now is %value
//set %value 2
*** this well not work as %value well be evaluated as 1 when the timer is created

//set %value 1
//timer 100 1 echo -a at $!time the special value now is % $+ value also $+(%,value) or $!(%value)
//set %value 2
*** this works

#125249 16/07/05 06:22 AM
S
SteeleR
SteeleR
S
10x DaveC


Link Copied to Clipboard