function:WINDOW
Table of Contents
WINDOW Function
The WINDOW() function returns the desired coordinate of the specified window, and can have one or two parameters.
Usage
- WINDOW(Coordinate)
- WINDOW(Index, Coordinate)
With two parameters, the first parameter specifies which window in the front application to operate on. With only one parameter, the Index is assumed to be the window of the Action in which the WINDOW() function is used (like the Manipulate a Window action), or the frontmost window if the Action does not refer to a window.
Parameters
The first parameter, Index, which is optional, may be:
- 0: the frontmost window of the frontmost app.
- Positive Number: the indexed window from front to back.
- Negative Number: the indexed window from back to front.
The second parameter, Coordinate, specifies the desired coordinate to be returned, and can be:
- Left
- Right
- Top
- Bottom
- Width
- Height
- MidX
- MidY
See Also
Actions
- Manipulate a Window action
- Move or Click Mouse action
- Custom HTML Prompt action
Functions
Tokens
- %FrontWindowName% token
- %WindowName% token
- %WindowSize% token
Forum
function/WINDOW.txt · Last modified: by peternlewis
