What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help with SendMessage()

Help with SendMessage()
Author: Message:
Coso
New Member
*


Posts: 3
35 / Male / Flag
Joined: Jul 2010
O.P. Help with SendMessage()
First of all I'm a n00b at scripting.
And my problem is this:
The script has a menu and when i click it, it creates a window with a button.. that works fine..

and when I push the button it should send a message in the chat window I clicked the menu...
But I don't know how to deffine the ChatWnd so I always get the same error.

'ChatWnd' is undefined
error code: -2146823279


There is no event in the chat window I what to send the message.

function OnCodedWndEvent_CtrlClicked(Wnd1, ControlId)
{
    if(ControlId == "BtnSnd")
        {

        ChatWin.SendMessage("Message");
        }


Is there a way to deffine the ChatWnd without having a event like OnEvent_ChatWndReceiveMessage(ChatWnd, Name, message, msgkind) so the script could use it later?
Lets say just by clicking the menu of the script in the chat window...?
07-29-2010 08:27 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with SendMessage() - by Coso on 07-29-2010 at 08:27 PM
RE: Help with SendMessage() - by matty on 07-30-2010 at 01:33 PM
RE: RE: Help with SendMessage() - by Coso on 07-30-2010 at 02:46 PM
RE: Help with SendMessage() - by matty on 07-30-2010 at 02:48 PM
RE: RE: Help with SendMessage() - by Coso on 07-30-2010 at 03:06 PM
RE: Help with SendMessage() - by matty on 07-30-2010 at 04:09 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