code:function OnEvent_ChatWndCreated(oChatWnd) { Interop.Call('user32', 'ShowWindow', oChatWnd.Handle, 5); Interop.Call('user32', 'SetForegroundWindow', oChatWnd.Handle); }