What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » event day change

event day change
Author: Message:
Suxsem
Junior Member
**


Posts: 66
Joined: Mar 2008
O.P. event day change
hi!
how can I create an event that generate when the day changed (24:00 > event > 24:01)?

without using a timer!

thank, bye!
05-13-2008 12:34 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: event day change
Hello Suxsem,

In fact, using a timer, which is defined by MsgPlus::AddTimer is the only solution to this. Within the OnEvent_Timer callback function, you would have to check if the timer ID is the one for the date timer, then create a Date object, check if the day has changed since the last execution, and then re-add the timer. Also store the current date in registry, using the WScript.Shell object and its RegWrite method, so the next time the callback is called by the timer event, you can compare the current with the stored date.

If you need details on any of these steps, just ask. :)
Regards,
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
05-13-2008 12:45 PM
Profile E-Mail PM Web Find Quote Report
Suxsem
Junior Member
**


Posts: 66
Joined: Mar 2008
O.P. RE: event day change
thank! i know use the timer :)
bye!
05-13-2008 12:55 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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