mIRC Home    About    Download    Register    News    Help

Print Thread
Idle problem #16910 25/03/03 07:27 PM
Joined: Mar 2003
Posts: 63
N
NiCk2 Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 63
Why does mIRC always returns 0 when I do //echo $idle ?
Have I got to use raws in order to retrieve information about my own idle ?

Re: Idle problem #16911 25/03/03 07:50 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Because after you type the line mIRC resets the idle counter. You can use $idle in a script without it resetting.

Re: Idle problem #16912 26/03/03 12:29 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
just to demonstrate it, try doing:
Code:
//timer11 5 /echo -a $idle

thatr should return 5, assuming the timer is correct.


-KingTomato
Re: Idle problem #16913 26/03/03 07:03 PM
Joined: Dec 2002
Posts: 117
R
Rich Offline
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
Try
//timer 1 5 /echo -a idle = $!idle
instead.


$input(Me like stars, You too?)