ENUMERATE - < win_enumerate >() ... [Pro]
Window ENUMERATE <win_enumerate>(Variable array for enumerated items,Variable array size,Match) Available in: Professional edition
|
This command enumerates windows.
|
#
|
Parameter name
|
Parameter description
|
1
|
Variable array for enumerated items
|
Variable (array) that receives window title of each visible window.
|
2
|
Variable array size
|
Number of visible windows saved in VarWindows variable.
|
3
|
Match
|
0 - enumerate only visible windows and insert window titles to VarWindows variable 1 - enumerate both visible and hidden windows and insert window titles to VarWindows variable 2 - enumerate only visible windows and insert HWND to VarWindows variable 3 - enumerate both visible and hidden windows and insert HWND to VarWindows variable
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro enumerates opened windows
|
2
|
Macro execution: ONLY COMMANDS
|
3
|
Window ENUMERATE "Only visible windows, get window titles", Variable array for enumerated items = vWin, Variable array size = vNum
|
4
|
Loop BEGIN Repeat = vNum
|
5
|
Message SHOW "" : "%vWin[_vLoopCounter0]%" (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).
|
6
|
Loop END
|
|
Example (Plain Text):
<#> This macro enumerates opened windows
<#>
<cmds>
<win_enumerate>(vWin,vNum,0)
<begloop>(vNum)
<msg>(-100,-100,"%vWin[_vLoopCounter0]%","Message",1)
<endloop>