Jump to content
Sign in to follow this  
FinalVersion

Window List

Recommended Posts

FinalVersion

I'm wondering on how to get all windows that are either visible (the front window, maximized, any state you can see), and minimized. I guess windows aren't going to be just minimized, seeing as I don't know what the exact states are (Ex: Enabled, no idea what that is ), maybe you can help me out.

Local $aWins = WinList()

For $i = 1 To $aWins[0][0]
    If $aWins[$i][0] <> "" Then
        $State = WinGetState($aWins[$i][1])
        If $State = 16 Then ; Minimized
            MsgBox(0, "", $aWins[$i][0])
        EndIf
    EndIf
Next

Share this post


Link to post
Share on other sites
whim

As per WinGetState help entry, try

; instead of If $State =16
If BitAND($State, 16) = 16

hth,

whim

Share this post


Link to post
Share on other sites
SmOke_N

Don't you already have a topic or two created for this specific question?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
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
Sign in to follow this  

×