This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
function:WINDOW [2021/10/15 04:27] peternlewis |
function:WINDOW [2023/09/20 04:33] (current) peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== WINDOW() Function ====== | + | ====== WINDOW Function ====== |
- | The *WINDOW()* function returns the desired coordinate of the specified window, and can have one or two parameters. | + | 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]]. | + | |
====== Usage ====== | ====== Usage ====== | ||
- | - *WINDOW(Coordinate)* | + | - WINDOW(Coordinate) |
- | - *WINDOW(Index, 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:Manipulate a Window)), or the frontmost window if the Action does not refer to a window. | + | 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 [[action:Manipulate_a_Window|Manipulate a Window]] action), or the frontmost window if the Action does not refer to a window. |
====== Parameters ====== | ====== Parameters ====== | ||
- | |||
The first parameter, *Index*, which is optional, may be: | The first parameter, *Index*, which is optional, may be: | ||
Line 44: | Line 41: | ||
===== Functions ===== | ===== Functions ===== | ||
- | * [[function:MENUBARHEIGHT|MENUBARHEIGHT()]] | + | * [[MENUBARHEIGHT]] |
- | * [[function:MOUSEBUTTON|MOUSEBUTTON()]] | + | * [[MOUSEBUTTON]] |
- | * [[function:MOUSEX|MOUSEX()]] | + | * [[MOUSEX]] |
- | * [[function:MOUSEY|MOUSEY()]] | + | * [[MOUSEY]] |
- | * [[function:SCREEN|SCREEN()]] | + | * [[SCREEN]] |
- | * [[function:SCREENCOUNT|SCREENCOUNT()]] | + | * [[SCREENCOUNT]] |
- | * [[function:SCREENVISIBLE|SCREENVISIBLE()]] | + | * [[SCREENVISIBLE]] |
- | * [[function:WINDOWCOUNT|WINDOWCOUNT()]] | + | * [[SCREENINDEX]] |
+ | * [[WINDOWCOUNT]] | ||
* [[:Functions|See all Functions]] | * [[:Functions|See all Functions]] | ||
===== Tokens ===== | ===== Tokens ===== | ||
- | * [[:token:FrontWindowName|%FrontWindowName%]] | + | * [[:token:FrontWindowName|%FrontWindowName%]] token |
- | * [[:token:WindowName|%WindowName%]] | + | * [[:token:WindowName|%WindowName%]] token |
- | * [[token:WindowSize|%WindowSize%]] | + | * [[token:WindowSize|%WindowSize%]] token |
* [[:Tokens|See all Tokens]] | * [[:Tokens|See all Tokens]] | ||