mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2006
Posts: 48
G
Ghozer Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
If you set a timer for 8pm (20:00) in the following manner...

/timerTEST 20:00 1 1 echo -a This is a test

when 20:00 arrives, the timer continually spams the echo untill 20:01 - where it stops...

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Can't reproduce here. It echo'ed once as expected.

Does this happen every time? Also have you checked you don't have an alias for /timer affecting it ( //echo -a $isalias(timer) )?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Sorry, Ghozer, but I can't replicate this behaviour either.

I even set my pc clock ahead to have it think that it was 20:00, as well as testing it with other times, just in case it was a fluke with the 20:00 time

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
the only thing I can imagine is that in the actual script you trigger another timer which is scheduled to run at 20:00 again which will trigger directly, untill 20:01 is reached when it's no longer valid and it will wait 24 hours before doing it again...

the above example will only trigger once


If it ain't broken, don't fix it!
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
The only way I see that it would do that is if you put 0 instead of 1 for the repetitions. Other than that, I don't see why it would do the same echo repeatedly.

Btw, 20:00 is 10:00pm, not 8:00pm.


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
20:00 is 8pm

22:00 is 10pm..

Silly americans, stick to your 12 hour clock :P


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Only Quebec uses 24hr time in Canada.

-genius_at_work

Joined: Oct 2006
Posts: 48
G
Ghozer Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
thats a point actually...

the script does have the timer re-activate (I want it every 8pm, so i added it at the bottom of the script that triggers) -- i set the delay to 120 seconds so wink -- should be good now

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Heh... You're right. I wasn't thinking. And I have to use 24h time at work. Oops.


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
you *could* also set a 60*60*24 second delay (one day in seconds) and infinite repititions so you would not need to reset it
after it's initial triggering.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard