What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Timer usage

[Question] Timer usage
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [Question] Timer usage
quote:
Originally posted by tryxter
quote:
Originally posted by CookieRevised
Ok... but what have timers to do with this?
Oh, well, the text read from the file has dates and times. When the timer is triggered it will read the ini file and will look for a time (that should correspond to the current time), and if this action returns 'true', it will do something (like display a toast or something, not decided yet).
Why not make your schedular the other way around so you avoid intensive file read operations all the time:

Read the file only when you script starts and store everything in memory. Make a timer which fires every time interval (smallest amount defined in your alarms in the ini, I assume it would be 1000ms) and compare the current time with the time in memory, if it is the same or higher, fire the event.

This post was edited on 01-08-2007 at 11:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-08-2007 11:57 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] Timer usage - by tryxter on 01-08-2007 at 08:56 PM
RE: [Question] Timer usage - by Jimbo on 01-08-2007 at 08:57 PM
RE: [Question] Timer usage - by tryxter on 01-08-2007 at 08:59 PM
RE: [Question] Timer usage - by matty on 01-08-2007 at 09:00 PM
RE: RE: [Question] Timer usage - by deAd on 01-08-2007 at 09:59 PM
RE: [Question] Timer usage - by CookieRevised on 01-08-2007 at 09:27 PM
RE: [Question] Timer usage - by tryxter on 01-08-2007 at 11:13 PM
RE: RE: [Question] Timer usage - by CookieRevised on 01-08-2007 at 11:40 PM
RE: [Question] Timer usage - by tryxter on 01-08-2007 at 11:51 PM
RE: RE: [Question] Timer usage - by CookieRevised on 01-08-2007 at 11:57 PM
RE: [Question] Timer usage - by tryxter on 01-09-2007 at 12:18 AM
RE: RE: [Question] Timer usage - by CookieRevised on 01-11-2007 at 06:24 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On