User Tools

Site Tools


token:WindowFrame

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
Last revision Both sides next revision
token:WindowFrame [2017/03/05 21:23]
peternlewis [Forum]
token:WindowFrame [2019/07/05 03:43]
peternlewis
Line 1: Line 1:
-{{:​action:​window-icon.png?​nolink|}} 
 ====== Window Related Tokens ====== ====== Window Related Tokens ======
  
 This Wiki page receives the redirect for a number or windows related tokens: This Wiki page receives the redirect for a number or windows related tokens:
  
 +  * [[token:​WindowName|%WindowName%]] and [[token:​FrontWindowName|%FrontWindowName%]]
   * [[token:​WindowFrame|%WindowFrame%]] and [[token:​FrontWindowFrame|%FrontWindowFrame%]]   * [[token:​WindowFrame|%WindowFrame%]] and [[token:​FrontWindowFrame|%FrontWindowFrame%]]
   * [[token:​WindowPosition|%WindowPosition%]] and [[token:​FrontWindowPosition|%FrontWindowPosition%]]   * [[token:​WindowPosition|%WindowPosition%]] and [[token:​FrontWindowPosition|%FrontWindowPosition%]]
Line 12: Line 12:
 ==== Token Parameters ==== ==== Token Parameters ====
  
-Each one takes a parameter indicating ​which window ​to use.  The parameter is the value _after_ the percent sign of the main token.\\ +The non-Front variants take a parameter indicating ​the window. ​ The parameter is the value _after_ the percent sign of the main token. ​ For example: `%TokenName%TokenParameter%` ​or `%WindowFrame%1%`.
-For example:\\ +
-`%TokenName%TokenParameter%`\\ +
-`%WindowFrame%1%`+
  
 The parameter may be: The parameter may be:
Line 23: Line 20:
 * Negative Number: the indexed window from back to front. * Negative Number: the indexed window from back to front.
  
-So for example, //​%WindowFrame%1%//​ gives the frame of the front window.+So for example, //​%WindowFrame%1%//​ gives the frame of the front window ​(the same as `%FrontWindowFrame%`).
  
 The Front variants are older versions that are equivalent to using Front as the parameter. ​ The Front variants are older versions that are equivalent to using Front as the parameter. ​
  
 Like all coordinates in Keyboard Maestro, the WindowPosition and WindowFrame are from the top left corner of 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). Like all coordinates in Keyboard Maestro, the WindowPosition and WindowFrame are from the top left corner of 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).
 +
 +==== WindowName (FrontWindowName) ====
 +
 +The `%WindowName%` tokens returns the window title of the specified window.
 +
 +`%FrontWindowName%` is a synonym for `%WindowName%Front%` and may be used interchangeably.
  
 ==== WindowFrame (FrontWindowFrame) ==== ==== WindowFrame (FrontWindowFrame) ====
Line 63: Line 66:
 `%FrontWindowSize%` is a synonym for `%WindowSize%Front%` and may be used interchangeably. `%FrontWindowSize%` is a synonym for `%WindowSize%Front%` and may be used interchangeably.
  
-Example Return of these tokens:+For example, ​these tokens ​return values for:\\ width,​height:​ 
  
 ``` ```
 1314,1173 1314,1173
- 
-width,​height 
 ``` ```
  
---- 
 ==== Accessing Window and Screen Coordinates ==== ==== Accessing Window and Screen Coordinates ====
  
Line 107: Line 108:
 * MidX * MidX
 * MidY * MidY
- 
---- 
  
 ===== See Also ===== ===== See Also =====
- 
----- 
  
 === Functions === === Functions ===
Line 138: Line 135:
 * [[trigger:​Focused Window|Focused Window trigger]] * [[trigger:​Focused Window|Focused Window trigger]]
 * [[:​Triggers|See all Triggers]] * [[:​Triggers|See all Triggers]]
- 
----- 
  
 ==== Forum ==== ==== Forum ====
token/WindowFrame.txt · Last modified: 2019/07/05 03:47 by peternlewis