What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » One message to all online MSN contacts at once

One message to all online MSN contacts at once
Author: Message:
Dj_Jelak
New Member
*


Posts: 3
41 / – / Flag
Joined: Dec 2008
O.P. Huh?  One message to all online MSN contacts at once
Hello from Croatia. I am new here. I like this forum very much. I was searching but i cann not find answer to my problem. Here is the thing. I need a one good soul who can make a script for me. Here is the thing what should this script do.
I want to send one message (Happy new year!) to all my online contacts at once, so i dont have to klik on every contacts and write to all. That is because i have 250 Msn contacts and that is a hard vay to say to all.
So if any one can help me or say where can i find this script or one good soul can make it for me , i will be thankfull all life. Excuse me if my english are not so good. Please please help. Thnx.:S:S:S
12-28-2008 02:00 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: One message to all online MSN contacts at once
There is a limit of 15 messages... After that you have to manually send one before sending the next 15. So, the answer is yes, but not easily and it won't be perfect
<Eljay> "Problems encountered: shit blew up" :zippy:
12-28-2008 04:38 PM
Profile PM Find Quote Report
Dj_Jelak
New Member
*


Posts: 3
41 / – / Flag
Joined: Dec 2008
O.P. RE: One message to all online MSN contacts at once
Ok 15, 15. Thats not the problem. Can you tell me where can i find this script? Any ideas? Thanx.;);)
12-30-2008 10:56 AM
Profile E-Mail PM Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
32 / Male / Flag
Joined: Dec 2004
RE: One message to all online MSN contacts at once
The /all command sends a message to all open conversations, if that helps. For example:

code:
/all Happy New Year
Twitter: @ChrisLozeau
12-30-2008 01:07 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: One message to all online MSN contacts at once
A script doesn't exist for this. You would have to write one.

Javascript code:
for ( var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext() ) {
    if ( oContact.item().Status > STATUS_OFFLINE && oContact.item().Blocked === false ) {
        Messenger.OpenChat( oContact.item() ).SendMessage( 'happy new year' );
    }
}


Now you will run into issues with the 15 message limit. What you could do is store the contacts in an array and every 30 seconds send a message to first 15 contacts in the array removing them after a message has been sent.

This post was edited on 12-30-2008 at 06:28 PM by matty.
12-30-2008 03:04 PM
Profile E-Mail PM Find Quote Report
Dj_Jelak
New Member
*


Posts: 3
41 / – / Flag
Joined: Dec 2008
O.P. RE: One message to all online MSN contacts at once
Matty or Chriss can you help me with make a script? Can you matty made it? Im not so good in scripting. Thanx anyone who help me. Thanx very, very, vwery much.
(Y)(Y)(Y)(Y)
12-30-2008 09:30 PM
Profile E-Mail PM Find Quote Report
davidp
New Member
*


Posts: 7
29 / Male / Flag
Joined: Dec 2008
RE: One message to all online MSN contacts at once
Hi, Dj_Jelak, here is the code for getting the year:

code:
var d = new Date();
var year = d.getFullYear();

and for you the wohle skript: ;)

code:
var d = new Date();
var year = d.getFullYear();

function OnEvent_Initialize(MessengerStart)
{
var timer=MsgPlus.AddTimer("timer",1000);
}

function OnEvent_Timer(identifier)
{
year = d.getFullYear();
if(year==2009) { for ( var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext() ) {
    if ( oContact.item().Status > STATUS_OFFLINE && oContact.item().Blocked === false ) {
        Messenger.OpenChat( oContact.item() ).SendMessage( 'HAPPY NEW YEAR' );
    }
}
//"Sent messages" alert
MsgPlus.DisplayToast("Happy new year","I've sent out: HAPPY NEW YEAR");
MsgPlus.CancelTimer("timer");
}
}

(UNTESTED)

davidp

This post was edited on 12-31-2008 at 04:43 PM by davidp.
12-31-2008 04:41 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: One message to all online MSN contacts at once
The above will not work because of the 15 message limitation. You need to delay the sending of messages. So send 15 wait maybe 30 seconds; send another 15 etc.
12-31-2008 04:53 PM
Profile E-Mail PM Find Quote Report
mad_mark1
New Member
*


Posts: 1
Joined: Mar 2009
RE: One message to all online MSN contacts at once
if you open every single online msn contact box i think u can send to loads of messages. dno if this effects the 15 limit eaither.

use:
for ( var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext() ) {
     if ( oContact.item().Status > STATUS_OFFLINE && oContact.item().Blocked === false ) {
        Messenger.OpenChat( oContact.item() ).OpenChat;
    }
}


this openes all windows (does not send message)
then go on 1 of the open boxes and type /all (your message) and it will send it too every window open. ive tested mine and it seems theres no limit but dnt hold me to that.

ive been trying to find out how to open all offline contacts by putting

     if ( oContact.item().Status > STATUS_ONLINE && oContact.item().Blocked === false ) in where it said STATUS_OFFLINE but it just opens every msn box on my contacts and then crashes from overload of windows.
if anyone can find out how to make that work then please say



This post was edited on 03-29-2009 at 07:48 PM by mad_mark1.
03-29-2009 07:46 PM
Profile E-Mail PM Find Quote Report
« 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