What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [OK]SendMessage Function

[OK]SendMessage Function
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: SendMessage Function
I did read it but I assumed you would understand...


Use this to send to someone on your contact list...

js code:
for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()){
     if(e.item().Email == "Person you want to send message to"){
          e.item().SendMessage("blah");
          //e.item() = ChatWnd object
      }
}

Use this to send to someone who you have an open window with

js code:
for(var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()){
     if(e.item().Email == "Person you want to send message to"){
          e.item().SendMessage("blah");
          //e.item() = ChatWnd object
      }
}

This post was edited on 08-10-2009 at 09:14 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
08-09-2009 11:46 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[OK]SendMessage Function - by Lén on 08-09-2009 at 10:12 PM
RE: SendMessage Function - by Spunky on 08-09-2009 at 11:00 PM
RE: SendMessage Function - by Lén on 08-09-2009 at 11:26 PM
RE: SendMessage Function - by Spunky on 08-09-2009 at 11:46 PM
RE: SendMessage Function - by Lén on 08-10-2009 at 02:23 AM
RE: SendMessage Function - by Spunky on 08-10-2009 at 09:16 AM
RE: SendMessage Function - by Lén on 08-10-2009 at 12:02 PM
RE: SendMessage Function - by Mnjul on 08-10-2009 at 12:28 PM
RE: SendMessage Function - by Spunky on 08-10-2009 at 12:53 PM
RE: SendMessage Function - by Lén on 08-10-2009 at 07:49 PM


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