Description |
Loops through all of the windows that are currently open on the system. The variable specified is updated with the current window title, and with each successive loop, the next window title is retrieved. The loop ends after all the open windows have been retrieved or when a Break is encountered. |
Declaration |
<AMLOOP TYPE="WINDOWS" RESULTVARIABLE="text
[variablename]" ALLOWHIDDEN="yes/no" INCLUDE="text"
EXCLUDE="text" SORT="text [options]" WINDOWHANDLEVARIABLE="text
[variablename]" RESULTDATASET="DatasetName"> |
Examples |
<!-- Close all windows containing the text Internet
Explorer --> <!-- List all open Word documents --> |
General Tab Parameters |
Populate variable with window title: Specifies an already created variable name that should be populated with the next window title on each successive loop. Text, Required Include hidden windows: Specifies that invisible (hidden) windows should be included in the loop results. Yes/No, Optional, Default: No |
Advanced Tab Parameters |
Include windows: Specifies a wildcard mask to designate the titles of windows to be included in the loop. For example, if "*Internet Explorer" was specified, the loop would only include window titles ending with the text Internet Explorer. Use asterisk (*) or question mark (?) as wildcard characters. Text, Optional, Default: (blank) Exclude windows: Specifies a wildcard mask to designate the titles of the windows to be excluded from the loop. For example, if "*Internet Explorer" was specified, the loop would include all window titles except those ending with the text Internet Explorer. Use asterisk (*) or question mark (?) as wildcard characters. Text, Optional, Default: (blank) Populate variable with window handle: Specifies an already existing variable to be populated with the current window handle. Text, Optional, Default: (blank) Create and populate dataset: Specifies the name of a dataset to be created and populated with data from each of the windows. In addition to the standard dataset fields, the dataset will contain the following:
Text, Optional, Default: (blank) Sorting: Specifies whether a sort order should be applied to the values before the loop begins. For example, selecting "ascending" would return the window titles in alphabetical order.
Text [options], Optional, Default: "none" |