This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:Tokens [2019/09/17 08:31] peternlewis [Other Uses for Tokens] |
manual:Tokens [2021/10/04 02:38] peternlewis [Tokens] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Tokens ====== | ====== Tokens ====== | ||
- | **Keyboard Maestro provides two means to get information about objects (like web pages and windows) in the user's environment:** | + | Keyboard Maestro provides two means to get information about objects (like web pages and windows) in the user's environment: |
1. [[:Tokens|Tokens]] (returns text, used in [[/Text_Fields|text fields]]) | 1. [[:Tokens|Tokens]] (returns text, used in [[/Text_Fields|text fields]]) | ||
Line 56: | Line 56: | ||
* Just tokens (not backslashed characters) or | * Just tokens (not backslashed characters) or | ||
* Do not process any text. | * Do not process any text. | ||
- | |||
- | |||
- | If you want to use the percent `%` character as a normal character, simply double the percent (`%%`). \\ | ||
- | To use a backslash `\` in your text, double the backslash (`\\`). | ||
Line 97: | Line 93: | ||
With tokens that return a list of information (comma separated by default), you can access the individual items using the Variable array notation, append the item number in square brackets `[ ]` to the Token name, just before the closing `%`. | With tokens that return a list of information (comma separated by default), you can access the individual items using the Variable array notation, append the item number in square brackets `[ ]` to the Token name, just before the closing `%`. | ||
- | For example:\\ | + | For example: |
Token for Window Frame, [[token:WindowFrame | %WindowFrame[3]%1%]], will be the third comma-separated value, which is the Window width in this case. | Token for Window Frame, [[token:WindowFrame | %WindowFrame[3]%1%]], will be the third comma-separated value, which is the Window width in this case. | ||