User Tools

Site Tools


function:SCREEN

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
function:SCREEN [2017/03/05 21:39]
peternlewis [Forum]
function:SCREEN [2018/07/11 17:29]
JMichaelTX [Forum]
Line 1: Line 1:
 The [[function:​SCREEN|SCREEN()]] and [[function:​SCREENVISIBLE|SCREENVISIBLE()]] functions return the position or size of a screen. ​ [[function:​SCREENVISIBLE|SCREENVISIBLE()]] refers to the visible section of the screen, excluding the menu bar and the dock. The [[function:​SCREEN|SCREEN()]] and [[function:​SCREENVISIBLE|SCREENVISIBLE()]] functions return the position or size of a screen. ​ [[function:​SCREENVISIBLE|SCREENVISIBLE()]] refers to the visible section of the screen, excluding the menu bar and the dock.
  
-    SCREEN( index, coordinate ) +    SCREEN( index [number OR name], coordinate ) 
-    SCREEN( index, coordinate, percentage )+    SCREEN( index [number OR name], coordinate, percentage )
  
-The SCREEN *index* can be 0 for the main screen, and then 1 through n are the screens in orientation order from left to right (and top down for screens at the same position). The index can also be one of:+The SCREEN *index* ​can be referenced by either a _number_ OR a _name_. ​ The _Index number_ ​can be 0 for the main screen, and then 1 through n are the screens in orientation order from left to right (and top down for screens at the same position). ​ ​_Index Names_ are shown below. 
 + 
 +The _Main_ screen is set by your macOS System Preferences. 
 +The other screens (monitors) are referenced positionally from the left most screen, which may, or _may not_, be the _Main_ screen. 
 + 
 +^ Index Name ^ Description ^ 
 +| **Main** | the screen with the primary menu bar (as configured in the Displays preferences).| 
 +| Second |the first from the left which is not the _Main_ screen.| 
 +| Third | the second from the left which is not the _Main_ screen.| 
 +| Internal | the internal screen of the Mac.| 
 +| External | the first from the left which is not an internal screen.| 
 +| Mouse | the screen containing the mouse.| 
 +| Front | the screen containing (the most of) the front window.| 
 +| Back | the first from the left not containing (the most of) the front window.| 
 +| Back2 | the second left most screen not containing (the most of) the front window.| 
 + 
 +:!: Note: Since the _Main_ screen ​can be in any position, be advised ​of the following: 
 +  * SCREEN(0) is always the _Main_ screen. 
 +  * SCREEN(1) may or may not be the _Main_ screen. 
 +  * SCREEN(2+) may or may not be the _Main_ screen.
  
-* Main - the screen with the primary menu bar (as configured in the Displays preferences). 
-* Second - the left most screen that does not have the menu bar. 
-* Third - the left most screen that is not the Main or Second screen. 
-* Internal - the left most screen that is an internal screen (typically on a laptop). 
-* External - the left most screen that is not an internal screen. 
-* Mouse - the left most screen containing the mouse. 
-* Front - the left most screen containing (the most of) the front window. 
-* Back - the left most screen not containing (the most of) the front window. 
-* Back2 - the second left most screen not containing (the most of) the front window. 
  
 The SCREEN *coordinate* can be: The SCREEN *coordinate* can be:
Line 66: Line 76:
 ==== Forum ==== ==== Forum ====
  
-- [[https://​forum.keyboardmaestro.com/​t/​i-need-a-conditional-if-there-are-two-monitors/​3031/​5|I need a conditional if there are two monitors]]+- [[https://​forum.keyboardmaestro.com/​t/​i-need-a-conditional-if-there-are-two-monitors/​3031/​|I need a conditional if there are two monitors]]
  
 - [[https://​forum.keyboardmaestro.com/​search?​q=Screen|Keyboard Maestro Forum topics about Screen]] - [[https://​forum.keyboardmaestro.com/​search?​q=Screen|Keyboard Maestro Forum topics about Screen]]
  
function/SCREEN.txt · Last modified: 2023/09/20 03:47 by peternlewis