No good ... i write another example
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
if(sMessage=="take")
{
idpartita=ChatWnd.Handle;
return "";
}
if(sMessage=="send")
{
ChatWnd.SendMessage("hello");
return "";
}
}
i write in a first windows "take" ,and in another windows i write "send",but i want when write "send" ,"hello" message is write in first windows where i take handle