O.P. RE: function OnGetScriptMenu - ChatWnd
Thank for replay!
But, if I use the function:
[code]for ( var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext() ) {
if ( oChatWnd.Handle === Interop.Call('user32', 'GetForegroundWindow' )) {
Debug.Trace("ok")
return oChatWnd;
}
}
"ok" never display in debug windows!
|