Text_Fields
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| Text_Fields [2019/06/25 12:45] – peternlewis | Text_Fields [2022/12/01 03:35] (current) – ccstone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Text Fields ====== | + | ====== Text and Numeric |
| - | Keyboard Maestro has two very distinct types of fields: | + | Keyboard Maestro has two very distinct types of fields: |
| + | |||
| + | - Most text fields | ||
| + | - Most numeric fields | ||
| + | |||
| + | ===== Text Fields ===== | ||
| + | |||
| + | Text fields offer an area where the user can enter any text, including [[manual: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | You can use a calculation | ||
| + | |||
| + | In most text fields, you can select the Gear BUTTON{{{⚙}}} popup menu to set processing options. | ||
| + | |||
| + | While editing a text field, a small BUTTON{{{T}}} indicator can be seen in the top right corner of the field. | ||
| + | |||
| + | **For details, see the [[manual: | ||
| ===== Numeric Fields ===== | ===== Numeric Fields ===== | ||
| Line 25: | Line 42: | ||
| You can insert functions into numeric fields using the *Edit ➤ Insert Function* menu. If you hold the option key down while selecting a function, you will get help on that function (from this wiki). | You can insert functions into numeric fields using the *Edit ➤ Insert Function* menu. If you hold the option key down while selecting a function, you will get help on that function (from this wiki). | ||
| - | ===== Text Fields ===== | + | While editing a text field, a small BUTTON{{{C}}} indicator can be seen in the top right corner of the field. |
| - | Text fields, on the other hand, start out larger. They may be single line, or multi-line, and may expand to more lines to fit (within limits) the content. Text token fields process [[: | + | ===== Variable |
| - | {{ : | + | Variable fields are similar to text fields, except they expect |
| - | + | ||
| - | You can use a calculation in a text field using the Calculate text token, eg *%Calculate%1+2%*. | + | |
| - | + | ||
| - | You can insert text tokens into text fields using the *Edit ➤ Insert Token* menu. If you hold the option key down while selecting | + | |
| - | Text token fields 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`, | + | While editing |
| - | + | ||
| - | To include a percent in your text, simply double the percent (%%). To include | + | |
| - | + | ||
| - | ==== Text Case Conversions ==== | + | |
| - | + | ||
| - | Text token fields also support (v9.0+) text case conversion escapes. The most common use is to change the case of an interpolated variable or other token, as well as in [[action: | + | |
| - | + | ||
| - | * `\U` converts everything up to the next `\L` or `\E` to uppercase. | + | |
| - | * `\L` converts everything up to the next `\U` or `\E` to lowercase. | + | |
| - | * `\u` converts the next character to uppercase. | + | |
| - | * `\l` converts the next character to lowercase. | + | |
| - | * `\U\l` lowercase first, then uppercase. | + | |
| - | * `\L\u` uppercase first, then lowercase. | + | |
| - | * `\E` stop changing case. | + | |
| - | + | ||
| - | You should not use `\u` after `\U` or `\l` after `\L` unless you terminate | + | |
| ===== Script Fields ===== | ===== Script Fields ===== | ||
| Line 78: | Line 75: | ||
| - [[https:// | - [[https:// | ||
| + | |||
Text_Fields.1561466713.txt.gz · Last modified: by peternlewis
