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 | ||
token:Screen [2015/07/15 05:57] peternlewis |
token:Screen [2019/07/04 01:38] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The //%Screen%// and //%ScreenVisible%// tokens return the frame or visible frame of the specified screen. It takes a parameter indicating which screen to use. | + | The //[[token:Screen|%Screen%]]// and //[[token:ScreenVisible|%ScreenVisible%]]// tokens return the frame or visible frame of the specified screen. It takes a parameter indicating which screen to use. |
The parameter may be: | The parameter may be: | ||
- | * Main or 0: the main screen (the defined one with the menu bar on it, although this is less apparent now that the menu bar is on all monitors). | + | ^ Index Name ^ Description ^ |
- | * Second: the left most screen that is not the Main screen. | + | | Main or 0 | the screen with the primary menu bar (as configured in the Displays preferences).| |
- | * Third: the left most screen that is not the Main or Second screen. | + | | Second | the first from the left which is not the _Main_ screen.| |
- | * Internal: the left most internal screen. | + | | Third | the second from the left which is not the _Main_ screen.| |
- | * External: the left most external screen. | + | | Internal | the internal screen of the Mac.| |
- | * Front: the left most screen containing (most of) the front window. | + | | External | the first from the left which is not an internal screen.| |
- | * Back: the left most screen that is not the Front screen. | + | | Mouse | the screen containing the mouse.| |
- | * Back2: the left most screen that is not the Front or Back screen. | + | | Front | the screen containing (the most of) the front window.| |
- | * Mouse: the left most screen containing the mouse cursor. | + | | Back | the first from the left not containing (the most of) the front window.| |
- | * Positive Number: the indexed screen from left to right. | + | | Back2 | the second left most screen not containing (the most of) the front window.| |
- | * Negative Number: the indexed screen from right to left. | + | | Positive Calculation | the indexed screen from left to right | |
+ | | Negative Calculation | the indexed screen from right to left | | ||
So for example, //%ScreenVisible%Main%// gives the visible frame of the main screen. | So for example, //%ScreenVisible%Main%// gives the visible frame of the main screen. | ||
Line 19: | Line 20: | ||
Like all coordinates in Keyboard Maestro, the frames are from the top left corner of the main screen. | Like all coordinates in Keyboard Maestro, the frames are from the top left corner of the main screen. | ||
+ | ===== See Also ===== | ||
+ | |||
+ | ==== Functions ==== | ||
+ | |||
+ | * [[function:SCREEN|SCREEN()]] | ||
+ | * [[function:SCREENVISIBLE|SCREENVISIBLE()]] | ||
+ | * [[:Functions|See all Functions]] | ||
+ | |||
+ | === Tokens === | ||
+ | |||
+ | * [[:Tokens|See all Tokens]] | ||
+ | |||
+ | ==== Forum ==== | ||
+ | |||
+ | - [[https://forum.keyboardmaestro.com/search?q=Screen|Keyboard Maestro Forum topics about Screen]] |