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:
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. Function on event friday?
I'd like to have a script with a On_Event function, which will function when its friday.

Basicly, I would like the proper code for a code like this:
On_Event Day = Friday ;
(my own coding here)

Can someone help me with this? It would be greatly appreciated!
06-22-2008 09:05 AM
Profile E-Mail PM Find Quote Report
zogo
Junior Member
**

Avatar
all you are doomed

Posts: 98
Reputation: 1
30 / Male / Flag
Joined: Feb 2008
RE: Function on event friday?
the only way i think you could do it is to seperate the script up

1. to work out the day
using the "if" commands etc...

2. the function itself

however i dunno the exact code

sorry

This post was edited on 06-22-2008 at 09:54 AM by zogo.
people have negativly rated me saying i'm spamming just to get 100 posts... i'm not! i'm 100% realy stuck... somtimes
06-22-2008 09:53 AM
Profile E-Mail PM Web Find Quote Report
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 »


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