mIRC Homepage
Posted By: MeshedP $idle issue - 19/10/04 02:35 PM
Hi all.
I dunno why in mirc 6.16 if i type in a window:

/timertest 3 1 echo -a My idle is: $idle


I get correctly:

My idle is: 1
My idle is: 2
My idle is: 3


but if I make an alias

/time {
/timertest 3 1 echo -a My idle is: $idle
}


and call it i get always


My idle is: 0
My idle is: 0
My idle is: 0
Posted By: wiebe Re: $idle issue - 19/10/04 03:29 PM
with the alias, $idle is evaluated when the timer starts, and is 0 because you probably just wrote a line to start that alias. try using $!idle in the alias.
Posted By: Soul_Eater Re: $idle issue - 19/10/04 09:16 PM
how do you get 'scripting' out of 'developer forum' ?
Posted By: DekuHaze Re: $idle issue - 19/10/04 11:14 PM
Quote:
This forum is for scripters, and for developers of applications that work with mIRC. Feel free to post your ideas, ask questions, and discuss scripting issues here.


That's how.
Posted By: MeshedP Re: $idle issue - 19/10/04 11:20 PM
many thanks. That was the problem smile
© mIRC Discussion Forums