"prompt for user input" but make it look like "search the web"

As another approach, here's a functional custom HTML prompt that takes the input and saves it to a variable:

Download Macro(s): Text input box.kmmacros (3.5 KB)

Macro screenshot

Macro notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.
System information
  • macOS 14.4.1
  • Keyboard Maestro v11.0.2

Here's how it looks in action:


Very important note: I wrote roughly 0.00005% of this macro. It's just a very lightly-edited version of @mrpasini's solution in this post:

All I did was slightly tweak the CSS to make it look more like the Spotlight input box. You could do a lot more with this, obviously, just by working the CSS and HTML. Note that if you want to get rid of the window title, then the window can only be closed by pressing Return; Escape doesn't work on a window without a visible title bar.

-rob.

1 Like