Jump to content

Unflash a Window ?


Recommended Posts

I have been trying to get this sorted for 2 days now and still am not happy with the progress :)

I am working on a chat suppression script, similar to what skype uses when your set to DnD, so when its set to busy all messages are suppressed.

Now the basic idea is quite easy.

#include 'winapi.au3'
$SystemHook = DllCall('user32.dll', 'int', 'RegisterWindowMessageW', 'wstr', 'SHELLHOOK') ;$SystemHook
GUIRegisterMsg($SystemHook[0], 'SystemDetectHook')
DllCall('user32.dll', 'int', 'RegisterShellHookWindow', 'hwnd', $SystemGUI)

While 1

Func SystemDetectHook($hWnd,$Msg,$wParam,$lParam)
If $wParam = 32774 then
$lParam = WinGetTitle($lParam)
If _WinAPI_GetClassName($lParam) = "TConversationForm" Then
ConsoleWrite("Skype Message" & @crlf)
ConsoleWrite("Steam Message" & @crlf)
WinSetState($lParam, '', @SW_HIDE)

but it seams steam keeps sending the "flash message", does anyone know a way to stop steam sending the "flash message" or perhaps send a message 2 the steam window it say "hey its been actived stop flashin me now" or something ^^

WinSetState($lParam, '', @SW_SHOWNORMAL)

WinSetState($lParam, '', @SW_MINIMIZE)

WinSetState($lParam, '', @SW_HIDE)

Kinda works, though the window "flashes" each time a message comes, sometimes fails, and sometimes steals "focus" from the current application :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...