Retrieves a list of windows.
WinList ( ["title" [, "text"]] )
Parameters
title | [optional] The title of the window to read. |
text | [optional] The text of the window to read. |
Return Value
Returns an array of matching window titles and handles.
Remarks
If no title and text is given then all top-level windows are returned.
Related
WinGetHandle
Example
$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, "Details", "Title=" & $var[$i][0] & @LF & "Handle=" & $var[$i][1])
EndIf
Next
Func IsVisible($handle)
If BitAnd( WinGetState($handle), 2 ) Then
Return 1
Else
Return 0
EndIf
EndFunc