What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need Help With Sending A Message

Need Help With Sending A Message
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Need Help With Sending A Message
SendMessage is a child function of the ChatWnd object. Therefore, to use this function, you first need the object. There are plenty of functions which return a ChatWnd object instance, it's up to you in what situation you need to send the message!
  • You can send a message when a chat window is created by using the ChatWnd parameter of OnEvent_ChatWndCreated.
  • You can send a message when the user sends or receives a message by using the ChatWnd parameter of OnEvent_ChatWndSendMessage or OnEvent_ChatWndReceiveMessage.
  • You can send a message when the user clicks the Scripts button in a chat window and selects a menu-item from the script menu by using the OriginWnd parameter of OnEvent_MenuClicked.
  • You can send a message after you've opened a chat window with Messenger.OpenChat():
    code:
    var ChatWnd = Messenger.OpenChat("someone@hotmail.com");
    ChatWnd.SendMessage("Hello Someone!");
  • You can loop through the opened chat windows by enumerating the Messenger.CurrentChats collection and send messages.
  • ...
Or in other words: please be a bit more specific when you want your script to send a message. :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-23-2007 09:25 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need Help With Sending A Message - by flashmaniac on 12-23-2007 at 03:13 AM
RE: Need Help With Sending A Message - by Matti on 12-23-2007 at 09:25 AM
RE: Need Help With Sending A Message - by flashmaniac on 12-24-2007 at 12:10 AM
RE: Need Help With Sending A Message - by Matti on 12-24-2007 at 10:55 AM


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