Jump to content

Detect if a Window is Flashing


Recommended Posts

Yea... I was going to dig up this topic and post the link to that hooker topic, but then opted for taking a nap instead... <_< Good that you found it and it works for you.

hahahaha! Yeah, thanks for getting that on the forums! It's a way better method for the things I do. You set it up REALLY nice.

Manipulating taskbar buttons is pretty easy with Auto3Lib's Toolbar wrappers.

NO WAY NO WAY!! I never freakin' saw that hahahahahahaha. It was sitting in my includes folder the whole time hahaha

THANK YOU Siao!

ALL,

Thanks for the help! I hope this helps some other fellows out there too

A decision is a powerful thing
Link to comment
Share on other sites

  • 2 years later...

How would this be applied to only look for specific programs, no matter what the window is named. Then Winactivate that window and then maximize it?

Eg. There is 4 Notepad windows, each time all 4 are launched there name is different and unpredictable, but they were all launched from notepad.exe, When one flashes it will be automatically Activated and made full screen. But it also needs to be able to be toggled on and off with a single hotkey(this i also need to figure out).

Are you able to adapt something to achieve this?

(Bump)

Edited by Orgasim
Link to comment
Share on other sites

  • 8 years later...

I'm using this approach:
 

;ShellHook notification codes:
Global Const $HSHELL_FLASH = 32774;

Global $bHook = 1

;GUI stuff:
Global $hGui = GUICreate("", 1, 1, -100, -100)

;Hook stuff:
GUIRegisterMsg(RegisterWindowMessage("SHELLHOOK"), "HShellWndProc")
ShellHookWindow($hGui, $bHook)


Func HShellWndProc($hWnd, $Msg, $wParam, $lParam)
    Switch $wParam
        Case $HSHELL_FLASH
            MsgBox(0, 'Title', '' & $lParam & " (" & WinGetTitle($lParam) & ")" & @CRLF)
        ....
    EndIf
    EndSwitch
EndFunc

But what If I need to check window which is already flashed in background and I want to run this script after?
Could anybody help with it?

__
Thanks in advance.

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
 Share

  • Recently Browsing   0 members

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