What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » sending a message to all my contacts

sending a message to all my contacts
Author: Message:
gregrj
Junior Member
**


Posts: 20
Joined: Feb 2011
O.P. RE: sending a message to all my contacts
like this ?

Javascript code:
var oContacts = [];
var Message = 'Salut Salut !, je suis en cours de migration sur gregreg94@live.fr , tu es ok pour rajouter cette adresse ? Si tu le fais, fais le moi savoir avec un petit mot stp :) Bises';
 
function OnEvent_Initialize() {
    OnEvent_SigninReady();
}
 
function OnEvent_SigninReady() {
    if (Messenger.MyStatus < STATUS_INVISIBLE) return false;
   
    for (var eContact = new Enumerator(Messenger.MyContacts); !eContact.atEnd(); eContact.moveNext())
        oContacts.push(eContact.item());
    MsgPlus.AddTimer('_Timer', 60000);
}
function OnEvent_Timer(sTimerId) {
    var bSent = true;
    var oChatWnd;
    while (bSent === true && oContacts.length > 0) {
        oChatWnd = Messenger.OpenChat(oContacts[0]);
        if (oChatWnd.EditChangeAllowed === true)
            bSent = oChatWnd.SendMessage(Message);
           
        Interop.Call('user32', 'SendMessageW', oChatWnd.Handle, 0x10 /* WM_CLOSE */, 0)
       
        if (bSent === true) {
            MsgPlus.LogEvent('Notification:', oContacts[0].Name+' has been notified of email change.', EVICON_PLUS);
            oContacts.shift();
        }
        else
            if (oContacts.length > 0)
                MsgPlus.AddTimer(sTimerId, 60000);
    }
}


again thank you for such investissement.
07-06-2012 10:11 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
sending a message to all my contacts - by gregrj on 07-04-2012 at 01:57 PM
RE: sending a message to all my contacts - by matty on 07-04-2012 at 02:19 PM
RE: sending a message to all my contacts - by gregrj on 07-04-2012 at 05:07 PM
RE: sending a message to all my contacts - by matty on 07-04-2012 at 05:13 PM
RE: sending a message to all my contacts - by gregrj on 07-05-2012 at 12:24 PM
RE: sending a message to all my contacts - by matty on 07-05-2012 at 12:42 PM
RE: sending a message to all my contacts - by gregrj on 07-05-2012 at 01:03 PM
RE: sending a message to all my contacts - by matty on 07-05-2012 at 03:26 PM
RE: sending a message to all my contacts - by gregrj on 07-05-2012 at 03:30 PM
RE: sending a message to all my contacts - by gregrj on 07-05-2012 at 03:34 PM
RE: sending a message to all my contacts - by matty on 07-05-2012 at 03:35 PM
RE: sending a message to all my contacts - by gregrj on 07-05-2012 at 10:55 PM
RE: sending a message to all my contacts - by gregrj on 07-06-2012 at 11:45 AM
RE: sending a message to all my contacts - by Mnjul on 07-06-2012 at 01:50 PM
RE: sending a message to all my contacts - by gregrj on 07-06-2012 at 10:11 PM
RE: sending a message to all my contacts - by gregrj on 07-09-2012 at 02:55 PM
RE: sending a message to all my contacts - by matty on 07-10-2012 at 12:24 PM
RE: sending a message to all my contacts - by segosa on 07-14-2012 at 09:26 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