mIRC Home    About    Download    Register    News    Help

Print Thread
#61417 22/11/03 10:46 AM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
is possible to do an action after an inactivity of 100 sec.?

#61418 22/11/03 11:46 AM
Joined: Sep 2003
Posts: 98
N
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
on *:input:*: { .timer 1 100 /your_actions_here }


www.stwar.us.to
IRCnet - #stwar
#61419 22/11/03 01:01 PM
Joined: Nov 2003
Posts: 6
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Nov 2003
Posts: 6
I don't think that's gonna work well.
I thought something like this:

on *:input:*:{ .timerINACTIVITY 1 100 your_actions_here }

#61420 22/11/03 06:10 PM
Joined: Nov 2003
Posts: 7
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Nov 2003
Posts: 7

That should work.

[Aazn]
Code:
 
on *:INPUT:{
.timer 1 100 /set %idle $idle
if (%idle ==> 100) {
YOUR_COMMANDS_HERE
}
} 

#61421 23/11/03 09:47 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Actually Sir_Eleet 's code is fine, no need for the if statement.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61422 23/11/03 08:29 PM
Joined: Sep 2003
Posts: 98
N
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
oh yea i forgot to name the timer :>


www.stwar.us.to
IRCnet - #stwar

Link Copied to Clipboard