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

Pages: (2): « First [ 1 ] 2 » Last »
[request] send message to all online contacts
Author: Message:
ombadboy
Junior Member
**


Posts: 30
Joined: Jun 2006
O.P. [request] send message to all online contacts
i was always thinkin of a script that u type in a message u want, and it sends it to all ONLINE contacts, whether you have their window open or not..

This post was edited on 06-29-2006 at 09:33 PM by WDZ.
06-29-2006 09:32 PM
Profile PM Find Quote Report
qgroessl
Veteran Member
*****


Posts: 1615
Reputation: 22
33 / – / Flag
Joined: Jul 2005
Status: Away
RE: [request]
I think this is part of MP!L... I think it was in MP!3 anyway...

EDIT: Yeah... I guess it's only the opened chat windows that it does it for.... the /all command only sends to open chat windows.... It would be a cool script though.

This post was edited on 06-29-2006 at 09:35 PM by qgroessl.
06-29-2006 09:33 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [request] send message to all online contacts
It is not hard to do but it would be a very slow process.

code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
    if (sMessage.substring(0, 6) == '/imall'){
        var NewMessage = sMessage.substr(6);
        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);
            }
        }
    }
}


You use this by saying /imall this is a message

This post was edited on 06-29-2006 at 10:22 PM by matty.
06-29-2006 09:50 PM
Profile E-Mail PM Find Quote Report
upsfeup
Junior Member
**


Posts: 67
Joined: Feb 2005
RE: [request] send message to all online contacts
Won't offline contacts also appear on the list?
06-29-2006 09:51 PM
Profile E-Mail PM Find Quote Report
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 upsfeup
Won't offline contacts also appear on the list?
Oops my bad
06-29-2006 09:52 PM
Profile E-Mail PM Find Quote Report
ombadboy
Junior Member
**


Posts: 30
Joined: Jun 2006
O.P. RE: [request] send message to all online contacts
hum.. seem to get an error that such cmd doesnt exist
06-29-2006 10:18 PM
Profile PM Find Quote Report
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
ombadboy
Junior Member
**


Posts: 30
Joined: Jun 2006
O.P. RE: [request] send message to all online contacts
same error :S
06-29-2006 10:25 PM
Profile PM Find Quote Report
upsfeup
Junior Member
**


Posts: 67
Joined: Feb 2005
RE: [request] send message to all online contacts
quote:
Originally posted by ombadboy
that such cmd doesnt exist
It doesn't say wich command?
06-29-2006 10:28 PM
Profile E-Mail PM Find Quote Report
ombadboy
Junior Member
**


Posts: 30
Joined: Jun 2006
O.P. RE: [request] send message to all online contacts
the command you entered is not correct..
06-29-2006 10:32 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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