User Tools

Site Tools


action:Custom_HTML_Prompt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
action:Custom_HTML_Prompt [2021/03/03 10:29]
JMichaelTX [Using JavaScript]
action:Custom_HTML_Prompt [2021/10/15 04:32]
peternlewis [Using JavaScript]
Line 1: Line 1:
-{{:​action:​html-form-icon.png?​nolink|}} 
 ====== Custom HTML Prompt Action ====== ====== Custom HTML Prompt Action ======
  
Line 14: Line 13:
   - If you want default values in the form, set these //​Variables//​ in a [[action:​Set_Variable_to_Text|Set Variable to Text]] Action   - If you want default values in the form, set these //​Variables//​ in a [[action:​Set_Variable_to_Text|Set Variable to Text]] Action
   - Execute the //Custom HTML Prompt// Action   - Execute the //Custom HTML Prompt// Action
-    * The HTML code can be in a file, or as text in the Action+    * The HTML code can be in a ''​.html'' ​file, or as text (html code) in the Action
   - When the User clicks on the OK button, the //Keyboard Maestro Variables// will be updated   - When the User clicks on the OK button, the //Keyboard Maestro Variables// will be updated
   - Use these //​Variables//​ in any other Actions you need   - Use these //​Variables//​ in any other Actions you need
Line 133: Line 132:
 | window.KeyboardMaestro.SetDictionary( '​Dictionary',​ '​Key',​ '​value'​ ) | sets 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.ProcessAppleScript( 'tell app "​Finder"​ to activate'​ ) | executes the AppleScript and returns the result (v10.0+) |
 | 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+) |
Line 161: Line 161:
 * [[action:​Prompt_for_User_Input|Prompt for User Input]] * [[action:​Prompt_for_User_Input|Prompt for User Input]]
 * [[action:​Prompt_With_List|Prompt With List]] action * [[action:​Prompt_With_List|Prompt With List]] action
 +* [[action:​Prompt_for_Screen_Rectangle|Prompt for Screen Rectangle]] action
 * [[action:​Prompt_for_File|Prompt for File]] action * [[action:​Prompt_for_File|Prompt for File]] action
 * [[action:​Get_Touch_Bar_Selection|Get Touch Bar Selection]] action * [[action:​Get_Touch_Bar_Selection|Get Touch Bar Selection]] action
Line 192: Line 193:
   * [Atom](https://​atom.io/​) -- A hackable text editor for the 21st Century. ​ It is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in JavaScript, and embedded Git Control, developed by GitHub.   * [Atom](https://​atom.io/​) -- A hackable text editor for the 21st Century. ​ It is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in JavaScript, and embedded Git Control, developed by GitHub.
   * [Visual Studio Code](https://​code.visualstudio.com/​) -- a freeware source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting,​ intelligent code completion, snippets, code refactoring,​ and embedded Git. Users can change the theme, keyboard shortcuts, preferences,​ and install extensions that add additional functionality   * [Visual Studio Code](https://​code.visualstudio.com/​) -- a freeware source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting,​ intelligent code completion, snippets, code refactoring,​ and embedded Git. Users can change the theme, keyboard shortcuts, preferences,​ and install extensions that add additional functionality
-  * FIXME  Wiki editors: ​ please add HTML editors you have found that work well. 
  
  
action/Custom_HTML_Prompt.txt ยท Last modified: 2021/12/11 10:14 by peternlewis