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 [2017/10/04 02:51] peternlewis [Using JavaScript] |
action:Custom_HTML_Prompt [2017/10/04 02:54] peternlewis [Using JavaScript] |
||
---|---|---|---|
Line 130: | Line 130: | ||
| window.KeyboardMaestro.GetVariable( 'KMVariableName' ) | returns the value of a variable | | | window.KeyboardMaestro.GetVariable( 'KMVariableName' ) | returns the value of a variable | | ||
| window.KeyboardMaestro.SetVariable( 'KMVariableName', 'value' ) | sets the value of a variable | | | window.KeyboardMaestro.SetVariable( 'KMVariableName', 'value' ) | sets the value of a variable | | ||
+ | | window.KeyboardMaestro.GetDictionary( 'Dictionary', 'Key' ) | returns the value of a dictionary entry | | ||
+ | | window.KeyboardMaestro.SetDictionary( 'Dictionary', 'Key', 'value' ) | sets the value of a dictionary entry | | ||
| window.KeyboardMaestro.ProcessTokens( '%ShortDate%' ) | returns the text token expansion | | | window.KeyboardMaestro.ProcessTokens( '%ShortDate%' ) | returns the text token expansion | | ||
| window.KeyboardMaestro.Calculate( '10 + 32' ) | returns the result of the calculation | | | window.KeyboardMaestro.Calculate( '10 + 32' ) | returns the result of the calculation | | ||
Line 135: | Line 137: | ||
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). | ||
- | |||
==== Form Validation ==== | ==== Form Validation ==== | ||