Tokens
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| Tokens [2016/06/23 01:07] – ADD: Definition, Anim. GIF example, sub-sections JMichaelTX | Tokens [2020/08/18 01:27] (current) – [Text Processing] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{: | ||
| ====== Tokens ====== | ====== Tokens ====== | ||
| ===== Definition ===== | ===== Definition ===== | ||
| - | **Tokens in Keyboard Maestro represent placeholders for information | + | **Tokens in Keyboard Maestro represent placeholders, that you enter during design time, for information |
| + | Tokens allow you to add textual information to [[/ | ||
| - | ---- | + | ===== Text Processing ===== |
| - | ===== How To Use ===== | + | You can use the following special formats to process text or to return non-printing characters: |
| + | * **Convert Case of Text** | ||
| + | * Use these special characters: | ||
| + | * **Return Non-Printing Characters** | ||
| + | * **Convert**: | ||
| + | * **To**: `bell, backspace, escape, form feed, tab, return, line feed`. | ||
| + | * **Convert Hex Code to Unicode Characters** | ||
| + | * Use Hex Codes in this format: `%NN%` or `%NNNN%` | ||
| + | * **Escape Special Characters** | ||
| + | * Use `%%` or `\%` to return a single `%` as plain text. | ||
| + | * Use `\\` to return a single `\` as plain text. | ||
| + | * Use `\$` to return a single `$` as plain text. | ||
| + | * **Access replacement strings** | ||
| + | * Replacement strings can also have addition meanings (such as `\1` or `${3}`) | ||
| - | Keyboard Maestro has a wide variety of tokens. Tokens allow you to add information to text fields in a [[Actions|Action]]. You can insert tokens into a field using the **//Insert Token//** popup near the field. | ||
| + | ===== List of Tokens ===== | ||
| - | {{: | ||
| + | ~~NOCACHE~~ | ||
| + | <nspages token -textPages=""> | ||
| - | ---- | + | ===== How To Use ===== |
| - | Most fields that contain | + | Keyboard Maestro has a wide variety of tokens. Tokens allow you to add information to text fields in an [[Actions|Action]]. You can insert |
| - | Action fields that accept tokens also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters \a, | ||
| - | To include a percent in your text, simply double the percent (%%). To include a backslash \ in your text, double the backslash (\\). | + | {{:km-7.1-insert-token-demo-an.gif? |
| - | ---- | + | Most fields that contain text (ie, not just numbers) can include tokens. |
| - | ===== List of Tokens ===== | + | Action fields that accept tokens also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters \a, |
| + | |||
| + | To include a percent (`%`) in your text, simply double the percent (`%%`). To include a backslash (`\`) in your text, double the backslash (`\\`). | ||
| - | ~~NOCACHE~~ | ||
| - | <nspages token -textPages=""> | ||
Tokens.1466644046.txt.gz · Last modified: by JMichaelTX
