User Tools

Site Tools


token:WindowName

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:WindowName [2016/03/08 07:16]
AlainLifchitz internal links
token:WindowName [2017/03/05 21:23]
peternlewis [Forum]
Line 1: Line 1:
-The [[token:WindowFrame|%WindowFrame%]],​ [[token:WindowPosition|%WindowPosition%]], ​[[token:WindowSize|%WindowSize%]], and [[token:WindowName|%WindowName%]] text tokens return ​information about the specified window.  ​Each one takes a parameter indicating which window to use.+{{:action:window-icon.png?​nolink|}} 
 +====== WindowName and FrontWindowName Tokens ====== 
 + 
 +This Wiki page receives the redirect for a number or windows related tokens: 
 +  * [[token:WindowName|%WindowName%]]  
 +  * [[token:FrontWindowName|%FrontWindowName%]]  
 + 
 +Each of these text tokens return ​the name of the specified window.  ​ 
 + 
 + 
 +==== Token Parameters ==== 
 + 
 + 
 +The //​WindowName//​ token takes a parameter indicating which window to use.  The parameter is the value _after_ the percent sign of the main token. For example: `% WindowName%1%`
  
 The parameter may be: The parameter may be:
  
-* Front or 0: the focussed/main window. Usually the same as index 1.+* Front or 0: the focused/main window. Usually the same as index 1.
 * Positive Number: the indexed window from front to back. * Positive Number: the indexed window from front to back.
 * Negative Number: the indexed window from back to front. * Negative Number: the indexed window from back to front.
Line 9: Line 22:
 So for example, //​%WindowName%1%//​ gives the name of the front window. So for example, //​%WindowName%1%//​ gives the name of the front window.
  
-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).+`%FrontWindowName%` is a synonym for `%WindowName%Front%` ​and may be used interchangeably. 
 + 
 +===== See Also =====
  
 ---- ----
Line 30: Line 45:
 * [[token:​WindowSize|%WindowSize%]] * [[token:​WindowSize|%WindowSize%]]
 * [[:​Tokens|See all Tokens]] * [[:​Tokens|See all Tokens]]
 +
 +=== Triggers ===
 +
 +* [[trigger:​Focused Window|Focused Window trigger]]
 +* [[:​Triggers|See all Triggers]]
  
 ---- ----
Line 37: Line 57:
 - [[https://​forum.keyboardmaestro.com/​t/​trapping-dialogs-in-pause-condition/​3046/​4|Trapping dialogs in Pause condition]] - [[https://​forum.keyboardmaestro.com/​t/​trapping-dialogs-in-pause-condition/​3046/​4|Trapping dialogs in Pause condition]]
  
-- [[https://www.google.fr/webhp?aqs=chrome..69i57.14628j0j7&​gws_rd=cr&​ei=_BSvVse8Ecb9acLtidAB#​q=site:​forum.keyboardmaestro.com+WindowName|Keyboard Maestro Forum topics about WindowName]]+- [[https://forum.keyboardmaestro.com/search?​q=WindowName|Keyboard Maestro Forum topics about WindowName]]
token/WindowName.txt · Last modified: 2019/07/05 03:45 by peternlewis