mIRC Home    About    Download    Register    News    Help

Print Thread
#125245 15/07/05 10:52 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
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.

HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#125246 16/07/05 01:30 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
timer 1 5 .echo -q $!zzz(aaa)

#125247 16/07/05 05:11 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
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.

HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#125248 16/07/05 05:56 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
10x DaveC


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg

Link Copied to Clipboard