Get(WindowLeft)
Returns the horizontal distance, in points, of the outer edge of the window on which the script is acting, relative to the leftmost edge of the screen.
Format
Get ( WindowLeft )
Parameters
None
Data type returned
number
Originated in version
7.0
Description
Except for card windows, the origin of the reference coordinate system is at the leftmost corner of the screen below the menu bar in macOS. In Windows, the origin is the left edge of the screen. A negative value indicates the portion of the left side of the window that is hidden.
For card windows, the origin is the left edge of the layout in the parent window. A negative value indicates the portion of the left side of the card that is left of the layout in the parent window.
Notes
-
The window on which the script is acting may not necessarily be the foreground window.
-
In FileMaker WebDirect, this function is supported only for cards.
-
Windows: Functions and script steps that work with windows refer to the outer edges of a window. See Get(WindowTop).
Example 1
Returns 52 when the outer edge of the active window is 52 points from the left edge of the screen.
Returns 0 when the active window is 0 points from the left edge of the screen.
For an example script, see New Window script step.