mIRC Home    About    Download    Register    News    Help

Print Thread
$idle issue #101014 19/10/04 02:35 PM
Joined: Oct 2004
Posts: 2
M
MeshedP Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Oct 2004
Posts: 2
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

Re: $idle issue #101015 19/10/04 03:29 PM
Joined: May 2004
Posts: 95
W
wiebe Offline
Babel fish
Offline
Babel fish
W
Joined: May 2004
Posts: 95
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.

Re: $idle issue #101016 19/10/04 09:16 PM
Joined: Mar 2003
Posts: 187
S
Soul_Eater Offline
Vogon poet
Offline
Vogon poet
S
Joined: Mar 2003
Posts: 187
how do you get 'scripting' out of 'developer forum' ?

Re: $idle issue #101017 19/10/04 11:14 PM
Joined: Jun 2003
Posts: 384
D
DekuHaze Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2003
Posts: 384
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.

Re: $idle issue #101018 19/10/04 11:20 PM
Joined: Oct 2004
Posts: 2
M
MeshedP Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Oct 2004
Posts: 2
many thanks. That was the problem smile