mIRC Home    About    Download    Register    News    Help

Print Thread
on *:TIMER:Timer_Name: { #52250 02/10/03 07:27 AM
Joined: Dec 2002
Posts: 37
X
Xx_InSaNe_xX Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Dec 2002
Posts: 37
I think an ON TIMER feature would be useful in many situations. For example, if you run a script that uses one or several timers that must be kept active while your time online and for some reason it is stopped, you would have a way to start it again.

Re: on *:TIMER:Timer_Name: { #52251 02/10/03 09:01 AM
Joined: Aug 2003
Posts: 136
MrPeepers Offline
Vogon poet
Offline
Vogon poet
Joined: Aug 2003
Posts: 136
If you dont add a full stop you see when a timer goes off
/timertest 1 5 /echo -a This is a test
* Timer test activated
-
This is a test
-
* Timer test halted


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
Re: on *:TIMER:Timer_Name: { #52252 02/10/03 10:24 AM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
if you use /timer -o the timer will only be stopped if

a] you or your script specifically tells it to
b] you close the mIRC program


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: on *:TIMER:Timer_Name: { #52253 03/10/03 11:31 AM
Joined: Feb 2003
Posts: 810
C
cold Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
..OR you can make an alias called /timer, which overrides the original command and applies these conditions you need.


* cold edits his posts 24/7
Re: on *:TIMER:Timer_Name: { #52254 03/10/03 02:05 PM
Joined: May 2003
Posts: 161
A
Ashkrynt Offline
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
If you make a /timer alias, it won't work if you specify a timer name

Re: on *:TIMER:Timer_Name: { #52255 03/10/03 02:08 PM
Joined: Feb 2003
Posts: 810
C
cold Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
O-oh that's true, forgot about that, sorry.


* cold edits his posts 24/7
Re: on *:TIMER:Timer_Name: { #52256 05/10/03 10:40 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
i think thats what he means, soemthing stops it, so he would like the ability to know it stopped, like some yahoo puts TIMER* OFF in there script, ok you gotta be pretty wacked to be running a script that did that, but still... I guess they could always have turned the events off as well, so the on timer event would trip either frown

Re: on *:TIMER:Timer_Name: { #52257 14/10/03 04:02 PM
Joined: Jul 2003
Posts: 22
J
Johan_NL Offline
Ameglian cow
Offline
Ameglian cow
J
Joined: Jul 2003
Posts: 22
I just came across the same problem I think. I want to run a single timer that checks idletime on all connections, but if i start one on one server there's no way really to tell if that timer is already running. The result is that the timer starts ends and restarts when you open a new server window. But my solution would be a property called active so you can check if a timer is running already. Would look something like this:

if ($timer(name/N).active == $true) {
command
}
else {
timer[name/N] etc
}

Wouldnt that be usefull ?

Johan_NL smile

Re: on *:TIMER:Timer_Name: { #52258 14/10/03 08:39 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
$timer(name/N).active would seem a little redundent as name/N must exist in the timer list for $timer(name/N).???? to come back with anything , just uses this
Code:
if ($timer(name/N) != $null) {
  command
} 
else {
  timer[name/N] etc
}
 

Re: on *:TIMER:Timer_Name: { #52259 14/10/03 10:31 PM
Joined: Jul 2003
Posts: 22
J
Johan_NL Offline
Ameglian cow
Offline
Ameglian cow
J
Joined: Jul 2003
Posts: 22
Never too young to learn eh ? grin

Johan_NL smile