Quote: "SET ACTIVE WINDOW Window Handle
This command will set the specified window as the active window. The window will move to the foreground and gain the focus. "
If you need the window handle, you can use:
Quote: "Window Handle = FIRST WINDOW ( Window Title, Search Mode )
This first form of this function will search for all top-level windows, and will return the handle of the first.
The second form of this function will search for all windows with the name provided and return the handle of the first found.
The last form if this function allows the title to be searched in more flexible ways. The mode should be set to one of the following values:
- 0 = Full title match, case-sensitive
- 1 = Full title match, case-insensitive
- 2 = Partial title match, case-sensitive
- 3 = Partial title match, case-insensitive
Further window handles can be retrieved by continuing to call the NEXT WINDOW function.
If no windows are found then this function will return a value of 0."