This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
function:WINDOW [2019/12/24 22:48] JMichaelTX Clarify use of option parameters |
function:WINDOW [2020/01/15 19:31] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **The `WINDOW()` function returns the desired coordinate of the specified window**, and can have one or two parameters. \\ | + | ====== WINDOW() Function ====== |
+ | |||
+ | |||
+ | **The `WINDOW()` function returns the desired coordinate of the specified window**, and can have one or two parameters. | ||
Like all [[:Functions|Functions]], it can be used _only_ in a [[:Text_Fields#Numeric_Fields|numeric calculation field]]. | Like all [[:Functions|Functions]], it can be used _only_ in a [[:Text_Fields#Numeric_Fields|numeric calculation field]]. | ||
+ | |||
+ | ====== Usage ====== | ||
- **`WINDOW(Coordinate)`** | - **`WINDOW(Coordinate)`** | ||
Line 8: | Line 14: | ||
+ | ====== Parameters ====== | ||
The first parameter, `Index`, which is optional, may be: | The first parameter, `Index`, which is optional, may be: | ||
- | * 0: the main or action window. | + | * 0: the frontmost window of the frontmost app. |
* Positive Number: the indexed window from front to back. | * Positive Number: the indexed window from front to back. | ||
* Negative Number: the indexed window from back to front. | * Negative Number: the indexed window from back to front. | ||
Line 29: | Line 36: | ||
- | ===== See Also ===== | + | ====== See Also ====== |
---- | ---- | ||
- | === Actions === | + | ===== Actions ===== |
* [[action:Login Window|Login Window]] | * [[action:Login Window|Login Window]] | ||
Line 40: | Line 48: | ||
* [[:Actions|See all Actions]] | * [[:Actions|See all Actions]] | ||
- | === Functions === | + | ===== Functions ===== |
* [[function:MENUBARHEIGHT|MENUBARHEIGHT()]] | * [[function:MENUBARHEIGHT|MENUBARHEIGHT()]] | ||
Line 52: | Line 60: | ||
* [[:Functions|See all Functions]] | * [[:Functions|See all Functions]] | ||
- | === Tokens === | + | ===== Tokens ===== |
* [[:token:FrontWindowName|%FrontWindowName%]] | * [[:token:FrontWindowName|%FrontWindowName%]] | ||
Line 61: | Line 69: | ||
---- | ---- | ||
- | ==== Forum ==== | + | ===== Forum ===== |
- [[https://forum.keyboardmaestro.com/t/send-the-front-most-window-to-back-bring-the-back-to-front/2226/19|Send the front most window to back? bring the back to front?]] | - [[https://forum.keyboardmaestro.com/t/send-the-front-most-window-to-back-bring-the-back-to-front/2226/19|Send the front most window to back? bring the back to front?]] |