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.