news!
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){
if(Message=="ok"){
Interop.Call("user32", "SendMessageW", ChatWnd.Handle, 0x0111, 40003, 0);
}
}
=CRASH
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){
if(Message=="ok"){
wnd = ChatWnd
MsgPlus.AddTimer("ok",2000)
return ""
}
}
function OnEvent_Timer(TimerId){
Interop.Call("user32", "SendMessageW", wnd.Handle, 0x0111, 40003, 0);
}
=WORK!
i think...the return is send before chat windows is closed... and that causes crash...