This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
action:Custom_HTML_Prompt [2021/10/15 04:46] peternlewis [How To Use] |
action:Custom_HTML_Prompt [2021/12/07 00:45] peternlewis [Using JavaScript] |
||
---|---|---|---|
Line 135: | Line 135: | ||
| `window.KeyboardMaestro.Calculate( '10 + 32' )` | returns the result of the calculation | | | `window.KeyboardMaestro.Calculate( '10 + 32' )` | returns the result of the calculation | | ||
| `window.KeyboardMaestro.Trigger( macro, value )` | triggers the specified macro (7.1+) | | | `window.KeyboardMaestro.Trigger( macro, value )` | triggers the specified macro (7.1+) | | ||
+ | | `window.KeyboardMaestro.Log( 'Message' )` | log a message in the Engine.log file (10.0.2+) | | ||
Prior to version 7.1, using SetVariable to set a value to something other than a string can [corrupt the variable](https://forum.keyboardmaestro.com/t/corrupted-variables-after-custom-html-setvariable-update-i-fixed-it-please-read/2881). | Prior to version 7.1, using SetVariable to set a value to something other than a string can [corrupt the variable](https://forum.keyboardmaestro.com/t/corrupted-variables-after-custom-html-setvariable-update-i-fixed-it-please-read/2881). |