johnyV Posted December 10, 2008 Posted December 10, 2008 hi, sorry not much of a programmer can someone help me turn this script : CODE$var = WinList() For $i = 1 to $var[0][0] ; Only display visble windows that have a title If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then MsgBox(0, "tittle", "list" & $var[$i][0] & @LF ) EndIf Next Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc so that it gives me one single msgbox with a list off all the windows that are open. Thank you very much.
Josbe Posted December 10, 2008 Posted December 10, 2008 Check the changes.$var = WinList() $sMyList= '' For $i = 1 to $var[0][0] ; Only display visble windows that have a title If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then $sMyList &= $var[$i][0] & @LF EndIf Next MsgBox(0, "tittle", "list" & $sMyList ) Func IsVisible($handle) If BitAnd( WinGetState($handle), 2 ) Then Return 1 Else Return 0 EndIf EndFunc AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
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