Shoutbox

How to send a meesage to more than one contact? - 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: How to send a meesage to more than one contact? (/showthread.php?tid=91206)

How to send a meesage to more than one contact? by robert_dll on 06-25-2009 at 07:27 PM

I think I will be asking many thinks these days *-) how can I send the same message to different contacts from the chat window. I have written the necessary code to reply to a contact who is sending an specific text, but I want that message to be sent to another contact, is that possible?


RE: How to send a meesage to more than one contact? by MicroWay on 06-26-2009 at 03:22 AM

You can use the command (before your message) ->   /all

Note that with this command you will send the same msg to ALL openned conversation windows!!!
;)


RE: How to send a meesage to more than one contact? by matty on 06-26-2009 at 02:31 PM

Step 1: Populate an array of emails
Step 2: Loop the emails to create a chat window and send a message

js code:
var aEmails = new Array();
    aEmails.push ( 'johndoe@hotmail.com' );
    aEmails.push ( 'johndoe1@hotmail.com' );

for ( var sEmail in aEmails ) {
    MsgPlus.OpenChat( aEmails [ sEmail ] ).SendMessage ( 'this is a message' );
}

Now you do not have to populate the emails through the source code you can show a window that has a list of emails and they can select which ones and populate it that way.
RE: How to send a meesage to more than one contact? by robert_dll on 06-27-2009 at 01:55 AM

quote:
Originally posted by MicroWay
this command you will send the same msg to ALL openned conversation windows!!!
That's the problem with it :P but thanks.

quote:
Originally posted by matty

Step 1: Populate an array of emails
Step 2: Loop the emails to create a chat window and send a message

Thanks matty :) for now, the script is for personal use, so, it is enough with that code, but I have another question, why do you use, for example, "a" before "Emails" ? , does it have a purpose?
Thanks ryxdp, it is clear now.