function:SCREEN
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| function:SCREEN [2017/03/06 02:39] – [Forum] peternlewis | function:SCREEN [2023/09/20 07:47] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The [[function:SCREEN|SCREEN()]] and [[function: | + | ====== |
| - | | + | The SCREEN() |
| - | SCREEN( index, coordinate, percentage ) | + | |
| - | The SCREEN *index* can be 0 for the main screen, | + | The SCREENINDEX() function (v10.0+) returns the actual index of the specified |
| - | * 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. | + | SCREEN( index [number OR name], coordinate |
| - | * Third - the left most screen that is not the Main or Second screen. | + | SCREEN( index [number OR name], coordinate, percentage |
| - | * Internal - the left most screen that is an internal screen | + | ``` |
| - | * 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 | + | |
| - | * 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 |
| + | |||
| + | 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 or 0 | 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.| | ||
| + | | Positive Calculation | the indexed screen from left to right. | | ||
| + | | Negative Calculation | the indexed screen from right to left. | | ||
| + | | Variable Name | the index value based on the value of the variable (v9.0+). | | ||
| + | |||
| + | :!: Note: Since the //Main// screen can be in any position: | ||
| + | | ||
| + | | ||
| + | * SCREEN(2+) may or may not be the //Main// screen. | ||
| + | |||
| + | The SCREEN // | ||
| * Left | * Left | ||
| Line 26: | Line 45: | ||
| * MidX | * MidX | ||
| * MidY | * MidY | ||
| + | * Index (v9.0+) | ||
| - | The optional SCREEN | + | The optional SCREEN |
| - | For example SCREEN(Internal, | + | For example SCREEN(Internal, |
| 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). | 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 are in absolute |
| ===== See Also ===== | ===== See Also ===== | ||
| - | |||
| - | ---- | ||
| ==== Actions ==== | ==== Actions ==== | ||
| - | * [[action: | + | * [[action: |
| - | * [[action: | + | * [[action: |
| * [[: | * [[: | ||
| ==== Functions ==== | ==== Functions ==== | ||
| - | * [[function:MENUBARHEIGHT|MENUBARHEIGHT()]] | + | * [[MENUBARHEIGHT]] |
| - | * [[function:MOUSEBUTTON|MOUSEBUTTON()]] | + | * [[MOUSEBUTTON]] |
| - | * [[function:MOUSEX|MOUSEX()]] | + | * [[MOUSEX]] |
| - | * [[function:MOUSEY|MOUSEY()]] | + | * [[MOUSEY]] |
| - | * [[function:SCREENCOUNT|SCREENCOUNT()]] | + | * [[SCREENCOUNT]] |
| - | * [[function:WINDOW|WINDOW()]] | + | * [[WINDOW]] |
| - | * [[function: | + | * [[WINDOWCOUNT]] |
| * [[: | * [[: | ||
| === Tokens === | === Tokens === | ||
| - | * [[token: | + | * [[token: |
| - | * [[token: | + | * [[token: |
| * [[: | * [[: | ||
| - | |||
| - | ---- | ||
| ==== Forum ==== | ==== Forum ==== | ||
| - | - [[https:// | + | - [[https:// |
| - [[https:// | - [[https:// | ||
function/SCREEN.1488767986.txt.gz · Last modified: by peternlewis
