quote:Originally posted by matty Here is a little workaround for that: code:function OnEvent_ChatWndReceivedMessage(oChatWnd, sMessage, sOrigin, nMessageKind) { if (Interop.Call('user32', 'GetForegroundWindow') !== oChatWnd.Handle) { var FLASHWINFO = Interop.Allocate(20); with (FLASHWINFO) { WriteDWORD(0, Size); WriteDWORD(4, oChatWnd.Handle); WriteDWORD(8, 0xC /* FLASHW_TIMERNOFG */ | 0x2 /* FLASHW_TRAY */); } Interop.Call('user32', 'FlashWindowEx', FLASHWINFO); } }
code:function OnEvent_ChatWndReceivedMessage(oChatWnd, sMessage, sOrigin, nMessageKind) { if (Interop.Call('user32', 'GetForegroundWindow') !== oChatWnd.Handle) { var FLASHWINFO = Interop.Allocate(20); with (FLASHWINFO) { WriteDWORD(0, Size); WriteDWORD(4, oChatWnd.Handle); WriteDWORD(8, 0xC /* FLASHW_TIMERNOFG */ | 0x2 /* FLASHW_TRAY */); } Interop.Call('user32', 'FlashWindowEx', FLASHWINFO); } }