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 [2016/02/27 12:26]
AlainLifchitz add link to forum
function:SCREEN [2017/03/05 21:39]
peternlewis [Forum]
Line 1: Line 1:
-The SCREEN and SCREENVISIBLE functions return the position or size of a screen. ​ 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, coordinate )
Line 31: Line 31:
 For example SCREEN(Internal,​Left,​10%) would be the coordinate of left edge of the internal screen plus 10% of the width of the internal screen. SCREEN(Front,​Right,​-10%) would be the coordinate of the right edge of the external screen minus 10% of the width of the external screen. For example SCREEN(Internal,​Left,​10%) would be the coordinate of left edge of the internal screen plus 10% of the width of the internal screen. SCREEN(Front,​Right,​-10%) would be the coordinate of the right edge of the external screen minus 10% of the width of the external screen.
  
-SCREEN sizes and positions are in "​points" ​(so a retina screen will typically have half as many points ​as pixels).+SCREEN sizes and positions are in //nominal resolution pixels// ​(so a retina screen will typically have half as many nominal resolution pixels ​as raw pixels).
  
 Coordinates are in absolute coordinates (relative to the top left corner of the main screen). Coordinates are in absolute coordinates (relative to the top left corner of the main screen).
Line 37: Line 37:
 ===== See Also ===== ===== See Also =====
  
-==== Documentation ====+----
  
-* [[action:​Manipulate a Window|action:Manipulate a Window]][[action:​Move or Click Mouse|action:Move or Click Mouse]] +==== Actions ==== 
-* [[function:MENUBARHEIGHT|function:​MENUBARHEIGHT]][[function:​MOUSEBUTTON|function:MOUSEBUTTON]][[function:​MOUSEX|function:MOUSEX]][[function:​MOUSEY|function:MOUSEY]][[function:​SCREENCOUNT|function:SCREENCOUNT]][[function:​WINDOW|function:WINDOW]][[function:​WINDOWCOUNT|function:WINDOWCOUNT]]+ 
 +* [[action:​Manipulate a Window|Manipulate a Window]] 
 +[[action:​Move or Click Mouse|Move or Click Mouse]] 
 +* [[:Actions|See all Actions]] 
 + 
 +==== Functions ==== 
 + 
 +* [[function:​MENUBARHEIGHT|MENUBARHEIGHT()]] 
 +[[function:​MOUSEBUTTON|MOUSEBUTTON()]] 
 +[[function:​MOUSEX|MOUSEX()]] 
 +[[function:​MOUSEY|MOUSEY()]] 
 +[[function:​SCREENCOUNT|SCREENCOUNT()]] 
 +[[function:​WINDOW|WINDOW()]] 
 +[[function:​WINDOWCOUNT|WINDOWCOUNT()]] 
 +* [[:​Functions|See all Functions]] 
 + 
 +=== Tokens === 
 + 
 +* [[token:​Screen|%Screen%]] 
 +* [[token:​ScreenVisible|%ScreenVisible%]] 
 +* [[:​Tokens|See all Tokens]] 
 + 
 +----
  
 ==== 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/​5|I need a conditional if there are two monitors]]
 +
 +- [[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