Shoutbox

One message to all online MSN contacts at once - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: One message to all online MSN contacts at once (/showthread.php?tid=87989)

One message to all online MSN contacts at once by Dj_Jelak on 12-28-2008 at 02:00 PM

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


RE: One message to all online MSN contacts at once by Spunky on 12-28-2008 at 04:38 PM

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


RE: One message to all online MSN contacts at once by Dj_Jelak on 12-30-2008 at 10:56 AM

Ok 15, 15. Thats not the problem. Can you tell me where can i find this script? Any ideas? Thanx.;);)


RE: One message to all online MSN contacts at once by Chris4 on 12-30-2008 at 01:07 PM

The /all command sends a message to all open conversations, if that helps. For example:

code:
/all Happy New Year

RE: One message to all online MSN contacts at once by matty on 12-30-2008 at 03:04 PM

A script doesn't exist for this. You would have to write one.

js 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.
RE: One message to all online MSN contacts at once by Dj_Jelak on 12-30-2008 at 09:30 PM

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)


RE: One message to all online MSN contacts at once by davidp on 12-31-2008 at 04:41 PM

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
RE: One message to all online MSN contacts at once by matty on 12-31-2008 at 04:53 PM

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.


RE: One message to all online MSN contacts at once by mad_mark1 on 03-29-2009 at 07:46 PM

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