mIRC Home    About    Download    Register    News    Help

Print Thread
P
Pap
Pap
P
I can't figure out a way to have mIRC do this. when you specify a time, the only thing I know of to try is to set it to trigger at say midnight, and delay for 86,400 seconds so it happens every day at midnight, but it's off by a few seconds daily. By about three weeks later it was over a minute off (mIRC and my computer are on 24/7).

I think this needs to be a new feature to the /timer in mIRC 6.04 grin

S
ScatMan
ScatMan
S
hmm, u can do something like this:
/timer 0 3600 /if ($asctime(HH:nn) == XX:XX) command
or
//timer XX:XX 1 1 /command | timer XX:XX 0 86400 /command


Last edited by ScatMan; 17/05/03 10:00 AM.
P
Pap
Pap
P
Well I still find that it is slow by 2-3 each day when I just make it delay 86,400 seconds. It must be cuz of the change in v6.03. There should really be a way to have it just trigger exactly. And i really dont want to have to make a timer that calls every second, and checks to see if the time is midnight or not, and run and infinate amount of times. Then again, that is probably what the internal code for mIRC WOULD DO anyways if they coded it in... alas...

S
ScatMan
ScatMan
S
try
//timer -c XX:XX 1 1 /command | timer -c XX:XX 0 86400 /command





Joined: Apr 2003
Posts: 426
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
The reason it is out is because your internal clock goes out of sync. Just like every other clock that isn't linked to an atomic clock.

My suggestion is to download a clock sync tool.

Google is your friend smile

P
Pap
Pap
P
actually, when i say it's off by a few seconds, i'm talking about the timestamp of the event that it triggers... it actually occurs at [00:00:00] the first time, then [00:00:02] the second time, then [00:00:04] the third time and so on... I'm talking about the timestamps according to mIRC, not my wristwatch or anything like that. Hell, my internal clock is off by way more than a few seconds a day. I use the Windows Clock Update thinger to sync to time.nist.gov every week. By there is no reason I know of for the mIRC timer to not sync to the system time. It is very strange I tell you.

Joined: Apr 2003
Posts: 426
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
I now know what you mean...


I ran a timer every 1 second that echoed the time.


Instantly I noticed it was up to 1sec-3sec behind my system clock.


Therfore, I'd suggest you use the -c switch with the timer.

ie

/timerThing -c 0 1 { stuff to do }

The -c will force it to catch up if the timer is out of sync.

/help /timer for more info


Link Copied to Clipboard