Text_Fields
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| Text_Fields [2016/02/21 12:08] – repair broken internal link AlainLifchitz | Text_Fields [2022/12/01 03:35] (current) – ccstone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Keyboard Maestro has two very distinct types of fields: text fields | + | ====== Text and Numeric Fields ====== |
| - | The difference is usually obvious. Numeric | + | Keyboard Maestro has two very distinct types of fields: |
| - | {{ : | + | - Most text fields allow the use of [[manual: |
| + | - Most numeric fields allow the use of [[Functions|Functions]]. | ||
| + | |||
| + | ===== Text Fields ===== | ||
| + | |||
| + | Text fields offer an area where the user can enter any text, including [[manual: | ||
| + | |||
| + | {{ :action: | ||
| + | |||
| + | You can use a calculation in a text field using the Calculate text token, eg *%Calculate%1+2%*. | ||
| + | |||
| + | 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 start out small, and usually have double arrows stepper next to them: | ||
| + | |||
| + | {{ action: | ||
| and then expand to allow more text if you type something other than a simple number: | and then expand to allow more text if you type something other than a simple number: | ||
| - | {{ :action: | + | {{ action: |
| - | They are designed to allow you to enter a specific numeric value. In these fields, you can type a raw calculation, | + | They are designed to allow you to enter a specific numeric value. In these fields, you can type a raw calculation, |
| As soon as you type anything other than a digit, they expand to a larger size to allow for a calculation. Calculation fields never use percent text tokens. | As soon as you type anything other than a digit, they expand to a larger size to allow for a calculation. Calculation fields never use percent text tokens. | ||
| Line 15: | Line 36: | ||
| If the function is invalid, it will highlight in red. Keep in mind that the expression may be invalid simply because a variable it references does not yet have a value. If you have not set the Count variable to a value, then the above action would look like this: | If the function is invalid, it will highlight in red. Keep in mind that the expression may be invalid simply because a variable it references does not yet have a value. If you have not set the Count variable to a value, then the above action would look like this: | ||
| - | {{ :action: | + | {{ action: |
| - | This is nothing inherently wrong with the action - the variable Count just does not currently have a numeric value. | + | This is nothing inherently wrong with the action - the variable Count just does not currently have a numeric value. |
| - | You can insert functions into numeric fields using the *Edit ➤ Insert Function* menu. In v7.0+ 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, 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 [[: | + | While editing a text field, a small BUTTON{{{C}}} indicator can be seen in the top right corner |
| - | {{ : | + | ===== Variable Fields ===== |
| - | You can use a calculation in a text field using the Calculate text token, eg *%Calculate%1+2%*. | + | Variable fields are similar to text fields, except they expect |
| - | You can insert | + | While editing a text field, a small BUTTON{{{V}}} indicator can be seen in the top right corner of the field. |
| - | 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, | + | ===== Script Fields ===== |
| - | + | ||
| - | To include a percent in your text, simply double the percent (%%). To include a backslash \ in your text, double the backslash (\\). | + | |
| Almost every field in Keyboard Maestro actions is either a numeric field or a text token field. The major exceptions are script fields. | Almost every field in Keyboard Maestro actions is either a numeric field or a text token field. The major exceptions are script fields. | ||
| - | Prior to version 7.0, the Select Menu Item action did not process text tokens, but it had its [[action:Select_or_Show_a_Menu_Item|own processing methods]]. | + | ===== See Also ===== |
| + | |||
| + | === Tokens === | ||
| + | |||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[: | ||
| + | |||
| + | ==== Topics ==== | ||
| + | |||
| + | * [[: | ||
| + | |||
| + | ==== Forum ==== | ||
| + | |||
| + | - [[https:// | ||
| + | |||
| + | - [[https:// | ||
| + | |||
| + | - [[https:// | ||
Text_Fields.1456056492.txt.gz · Last modified: by AlainLifchitz
