What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] send message to all online contacts

[request] send message to all online contacts
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [request] send message to all online contacts
quote:
Originally posted by ombadboy
hum.. seem to get an error that such cmd doesnt exist
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
    if (sMessage.substring(0, 6) == '/imall'){
        var NewMessage = sMessage.substr(7);
        var ChatWnd;
        for(var enumerator = new Enumerator(Messenger.MyContacts) ; !enumerator.atEnd(); enumerator.moveNext()){
            var Contact = enumerator.item();
            if (Contact.Status != 1){
                ChatWnd = Contact.OpenChat(Contact.Email);
                ChatWnd.SendMessage(NewMessage);
                Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);
            }
        }
    }
}

Oops again, I seemed to have missed a line
code:
var ChatWnd;

This post was edited on 06-29-2006 at 10:23 PM by matty.
06-29-2006 10:23 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] send message to all online contacts - by ombadboy on 06-29-2006 at 09:32 PM
RE: [request] - by qgroessl on 06-29-2006 at 09:33 PM
RE: [request] send message to all online contacts - by matty on 06-29-2006 at 09:50 PM
RE: [request] send message to all online contacts - by upsfeup on 06-29-2006 at 09:51 PM
RE: [request] send message to all online contacts - by matty on 06-29-2006 at 09:52 PM
RE: [request] send message to all online contacts - by ombadboy on 06-29-2006 at 10:18 PM
RE: [request] send message to all online contacts - by matty on 06-29-2006 at 10:23 PM
RE: [request] send message to all online contacts - by ombadboy on 06-29-2006 at 10:25 PM
RE: [request] send message to all online contacts - by upsfeup on 06-29-2006 at 10:28 PM
RE: [request] send message to all online contacts - by ombadboy on 06-29-2006 at 10:32 PM
RE: [request] send message to all online contacts - by upsfeup on 06-29-2006 at 10:40 PM
RE: [request] send message to all online contacts - by -dt- on 06-29-2006 at 10:44 PM
RE: [request] send message to all online contacts - by upsfeup on 06-29-2006 at 10:50 PM
RE: [request] send message to all online contacts - by The Brain on 06-30-2006 at 01:24 AM
RE: [request] send message to all online contacts - by matty on 06-30-2006 at 06:04 AM
RE: [request] send message to all online contacts - by ombadboy on 06-30-2006 at 08:46 AM
RE: [request] send message to all online contacts - by ombadboy on 07-05-2006 at 09:20 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