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...?
|