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:
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
send Message in a specific windows - by magemello on 01-20-2008 at 05:32 PM
RE: send Message in a specific windows - by mynetx on 01-20-2008 at 05:39 PM
RE: send Message in a specific windows - by magemello on 01-20-2008 at 06:07 PM
RE: send Message in a specific windows - by mynetx on 01-20-2008 at 06:11 PM
RE: send Message in a specific windows - by magemello on 01-20-2008 at 06:17 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