What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » One message to all online MSN contacts at once

One message to all online MSN contacts at once
Author: Message:
davidp
New Member
*


Posts: 7
30 / Male / Flag
Joined: Dec 2008
RE: One message to all online MSN contacts at once
Hi, Dj_Jelak, here is the code for getting the year:

code:
var d = new Date();
var year = d.getFullYear();

and for you the wohle skript: ;)

code:
var d = new Date();
var year = d.getFullYear();

function OnEvent_Initialize(MessengerStart)
{
var timer=MsgPlus.AddTimer("timer",1000);
}

function OnEvent_Timer(identifier)
{
year = d.getFullYear();
if(year==2009) { for ( var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext() ) {
    if ( oContact.item().Status > STATUS_OFFLINE && oContact.item().Blocked === false ) {
        Messenger.OpenChat( oContact.item() ).SendMessage( 'HAPPY NEW YEAR' );
    }
}
//"Sent messages" alert
MsgPlus.DisplayToast("Happy new year","I've sent out: HAPPY NEW YEAR");
MsgPlus.CancelTimer("timer");
}
}

(UNTESTED)

davidp

This post was edited on 12-31-2008 at 04:43 PM by davidp.
12-31-2008 04:41 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
One message to all online MSN contacts at once - by Dj_Jelak on 12-28-2008 at 02:00 PM
RE: One message to all online MSN contacts at once - by Spunky on 12-28-2008 at 04:38 PM
RE: One message to all online MSN contacts at once - by Dj_Jelak on 12-30-2008 at 10:56 AM
RE: One message to all online MSN contacts at once - by Chris4 on 12-30-2008 at 01:07 PM
RE: One message to all online MSN contacts at once - by matty on 12-30-2008 at 03:04 PM
RE: One message to all online MSN contacts at once - by Dj_Jelak on 12-30-2008 at 09:30 PM
RE: One message to all online MSN contacts at once - by davidp on 12-31-2008 at 04:41 PM
RE: One message to all online MSN contacts at once - by matty on 12-31-2008 at 04:53 PM
RE: One message to all online MSN contacts at once - by mad_mark1 on 03-29-2009 at 07:46 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