[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 |
|
|
qgroessl
Veteran Member
Posts: 1615 Reputation: 22
33 / – /
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
ombadboy
Junior Member
Posts: 30
Joined: Jun 2006
|
O.P. RE: [request] send message to all online contacts
same error
|
|
06-29-2006 10:25 PM |
|
|
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 |
|
|
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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|