What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to send a meesage to more than one contact?

How to send a meesage to more than one contact?
Author: Message:
robert_dll
Full Member
***

Avatar

Posts: 393
Reputation: 8
– / Male / Flag
Joined: Aug 2008
O.P. How to send a meesage to more than one contact?
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?
06-25-2009 07:27 PM
Profile PM Web Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
37 / Male / Flag
Joined: Jul 2006
Status: Away
RE: How to send a meesage to more than one contact?
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!!!
;)
06-26-2009 03:22 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to send a meesage to more than one contact?
Step 1: Populate an array of emails
Step 2: Loop the emails to create a chat window and send a message

Javascript 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.
06-26-2009 02:31 PM
Profile E-Mail PM Find Quote Report
robert_dll
Full Member
***

Avatar

Posts: 393
Reputation: 8
– / Male / Flag
Joined: Aug 2008
O.P. RE: How to send a meesage to more than one contact?
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.
06-27-2009 01:55 AM
Profile PM Web 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