FinalVersion Posted April 23, 2010 Posted April 23, 2010 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 [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
whim Posted April 23, 2010 Posted April 23, 2010 As per WinGetState help entry, try ; instead of If $State =16 If BitAND($State, 16) = 16 hth, whim
Moderators SmOke_N Posted April 23, 2010 Moderators Posted April 23, 2010 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.
JohnOne Posted April 23, 2010 Posted April 23, 2010 Maybe its just me but there is an example function for the exact thing you want in the helpfile for winlist. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now