Is there an equivalent to AHK's InputBox in KM?

AutoHotkey allows a script to define an InputBox window to open, where the user can be asked for text and that text can be saved as a variable. Is there an equivalent function in Keyboard Maestro?

Thanks from a Keyboard Maestro noob.

Absolutely. It’s called Prompt for User Input, and is very flexible in the way it lets you enter variables: https://wiki.keyboardmaestro.com/action/Prompt_for_User_Input

1 Like

Thanks! I had searched the KM actions with several different keywords but had failed to find what I was looking for.

1 Like

What keywords did you use, so we can add them to the wiki page.

InputBox?

1 Like

I tried “ask,” “ask user,” and “InputBox.”

Have you selected all actions? Then it shows the prompt for user input :slight_smile:

Welcome to Keyboard Maestro!

LIke any app, it may take a bit of use, searching the Help and Wiki, and going through some of the tutorials before you can readily find exactly what you want. KM is a very full-featured app with many actions, tokens and functions. See my getting started suggestions at the bottom.

Having said that, this KM Forum is one of the great resources of KM. I think you will find it a very friendly place, with many knowledgeable members who are willing, even eager, to help. So, when you get stuck, feel free to post a question before you spend a lot of time.


**Addressing Your Specific Issue**

Did you try searching the KM Wiki:
https://wiki.keyboardmaestro.com/


When I search for "ask user", "Prompt for User Input" is at the top of the list.

<img src="/uploads/default/original/2X/6/642d3383d776b87036e074d2bc28fa3456155885.png" width="690" height="394">

The KM Wiki is also available from the KM Editor Help menu:

<img src="/uploads/default/original/2X/d/d08e3a3e7bfec07cc3e8a4bd0a6f8ad0916f835a.png" width="350" height="192">

Getting Started with Keyboard Maestro

  • Read the Quick Start.
    • This is essential to become familiar with KM terminology
  • Do the tutorial (Help ➤ Tutorial) in the KM Editor.
    • Gives you a live walkthrough of creating a macro in the KM Editor
  • Review/Browse the Available Macro Actions
  • For Help with an Action in your Macro, click on the gear icon at the top right of the Action, and select "Help"
  • Search the Keyboard Maestro Wiki for detailed help.
  • Start small, and grow your macros organically.
  • Be prepared for some trial and error in the beginning.
  • Make good use of this Keyboard Maestro Forum
    • Search for existing macros
    • Post your questions/issues if you get stuck

Sorry, I misread peternlewis’s question and thought he was referring to searching the actions within the editor while editing a macro. Thanks for the help regardless.

When searching the actions in the editor “ask user” and my other keywords lend no results.

edit: added clarification that searching the actions with my keywords does indeed lend no results

I have added “ask” and “input” and “inputbox” as matchable terms for the Prompt actions for the next version.

Thanks.

1 Like