mIRC Home    About    Download    Register    News    Help

Print Thread
#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 ?

#16911 25/03/03 07:50 PM
Joined: Dec 2002
Posts: 3,138
C
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.

#16912 26/03/03 12:29 PM
Joined: Jan 2003
Posts: 3,012
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
#16913 26/03/03 07:03 PM
Joined: Dec 2002
Posts: 117
R
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?)

Link Copied to Clipboard