User Tools

Site Tools


action:Execute_a_JavaScript_in_Custom_Prompt

**This is an old revision of the document!**

Execute JavaScript in Custom HTML Prompt

Options for Returning Results

  • ignore results.
  • display results in a window.
  • display results briefly.
  • display results large.
  • type results.
  • paste results.
  • save results to variable.
  • append results to variable.
  • save results to the system clipboard or a named clipboard.
  • save results to a file.
  • asynchronously — the script runs while the macro continues on, no results are returned.

If the results are to be saved to a variable or a clipboard then further text areas appear in the action allowing you to specify the variable or specific clipboard.

Using Keyboard Maestro Variables

You can use the window.KeyboardMaestro facilities of the Custom HTML Prompt to read and write Keyboard Maestro variables.

Specify the Custom HTML Prompt

You can specify a Custom_HTML_Prompt with a matching data-kmwindowid to apply the JavaScript to, otherwise it will be applied to all open Custom HTML Prompt windows.

See Also

Actions

Forum

action/Execute_a_JavaScript_in_Custom_Prompt.1694509281.txt.gz · Last modified: 2023/09/12 05:01 by peternlewis