This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
token:Window_Tokens [2019/07/05 03:52] peternlewis |
token:Window_Tokens [2020/08/31 20:03] JMichaelTX Add FoundImage Token |
||
---|---|---|---|
Line 75: | Line 75: | ||
``` | ``` | ||
- | ==== Accessing Window and Screen Coordinates ==== | + | ==== Accessing Window, Screen, & Image Coordinates ==== |
- | When a Window or screen token returns a set of 4 comma-delimited values as one result into a Keyboard Maestro Variable (which is always text), you can access the individual values, and calculate other values, by using certain key words appended to the Variable name in a [[token:Calculate|Calculate Token]], such as the following: | + | When a Window, screen token or a [[token:FoundImage|FoundImage Token]] returns a set of 4 comma-delimited values as one result into a Keyboard Maestro Variable (which is always text), you can access the individual values, and calculate other values, by using certain _coordinate names_ appended to the Variable name in a [[token:Calculate|Calculate Token]], such as the following: |
{{:token:km-7.3-window-coordinates.png?nolink|}} | {{:token:km-7.3-window-coordinates.png?nolink|}} | ||
Line 99: | Line 99: | ||
For WindowPosition, you can use Left and Top, and for WindowSize you can use Width and Height. | For WindowPosition, you can use Left and Top, and for WindowSize you can use Width and Height. | ||
- | === Screen/Window Keyword "coordinates" === | + | === Screen/Window/Image Coordinate Names === |
Line 131: | Line 131: | ||
* [[token:WindowPosition|%WindowPosition%]] | * [[token:WindowPosition|%WindowPosition%]] | ||
* [[token:WindowSize|%WindowSize%]] | * [[token:WindowSize|%WindowSize%]] | ||
+ | * [[token:FoundImage|FoundImage Token]] | ||
+ | |||
* [[:Tokens|See all Tokens]] | * [[:Tokens|See all Tokens]] | ||