What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » send Message in a specific windows

send Message in a specific windows
Author: Message:
magemello
New Member
*


Posts: 9
Joined: Jan 2008
O.P. send Message in a specific windows
it is possible send message in a specific windows using a Handle Property of  ChatWnd and ChatWnd.SendMessage("message")   command?
01-20-2008 05:32 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: send Message in a specific windows
Sending messages to a specific chat window works as follows:
code:
wndSomeChat.SendMessage("Hi there. :)");

You won't need the ChatWnd.Handle property to send a message.
You may store the chat window object to send a message to this specific window later in the script, such as:
code:
var wndChatWindow;

function someFunctionRunsFirst() {
    wndChatWindow = objChatWnd; // local variable objChatWnd comes from anywhere
}

// ...

function someFunctionRunsLater() {
    // now we decide to send a message to the window we have stored
    if(wndChatWindow) {
        wndChatWindow.SendMessage("Hi there...");
    }
}

This post was edited on 01-20-2008 at 05:39 PM by mynetx.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
01-20-2008 05:39 PM
Profile E-Mail PM Web Find Quote Report
magemello
New Member
*


Posts: 9
Joined: Jan 2008
O.P. RE: send Message in a specific windows
Thank you.... but now i've got another problem... is it possible to send hidden messages? Because i wanted to sent some program datas without the reciever knowing it.
01-20-2008 06:07 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: send Message in a specific windows
When you send messages to a recipient, he/she will always see them unless there is a Plus! script running there which implements the OnEvent_ChatWndReceiveMessage function. That function should return an empty string if the message was data to be received and not to be displayed. (But I'm not sure if the opening chat window will be suppressed.)

/edit:
You will find more information about this topic in the Official Scripting Documentation.

This post was edited on 01-20-2008 at 06:13 PM by mynetx.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
01-20-2008 06:11 PM
Profile E-Mail PM Web Find Quote Report
magemello
New Member
*


Posts: 9
Joined: Jan 2008
O.P. RE: send Message in a specific windows
thank you i didn't think about that.
01-20-2008 06:17 PM
Profile E-Mail PM 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