Jump to content

Window List


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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.

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...