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

Function on event friday?
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Function on event friday?
Well, you could do a check on the day of the week when the script starts up, this will work fine if you don't leave your PC and Messenger on during the night.
code:
function OnEvent_Initialize(MessengerStart) {
   if(Messenger.MyStatus > 0) OnEvent_SigninReady(Messenger.MyEmail);
}

function OnEvent_SigninReady(Email) {
   if(new Date().getDay() == 5) { //Sunday = 0, Monday = 1,...
      //It's Friday! Do something here!
   }
}
However, when you want to do the same when you go from Thursday 23:59:59 to Friday 00:00:00, you'll have to use a timer to do that. If you really really need that, I could help you with it. The code above will work perfectly if you shut down your Messenger every day. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-22-2008 10:18 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Function on event friday? - by DennisMartijn on 06-22-2008 at 09:05 AM
RE: Function on event friday? - by zogo on 06-22-2008 at 09:53 AM
RE: Function on event friday? - by Matti on 06-22-2008 at 10:18 AM


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