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:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: [request] send message to all online contacts
quote:
Originally posted by ombadboy
the command you entered is not correct..
quote:
Originally posted by upsfeup
!!! You have to register it in the XML! ScriptInfo.xml

the way to not use the command is to change the first letter to ! instead of /

It will work the same, but it won't appear in the command list when you type "/"
:-/ you dont have to register it in ScriptInfo.xml just change mattys code like



quote:
Originally posted by Matty

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);
                return '';
            }
        }
    }
}


This post was edited on 06-29-2006 at 10:45 PM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
06-29-2006 10:44 PM
Profile PM Web 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