No support for local variables in Prompt for user input, when changing display name

I tried to use the function to display something else in the variable name "__" when asking for user inputs.
And to make the macro more clean I would like to make the variables local for this macro.

But this does not seem to work, when displaying another name for the variables.

See the test below, where the first variables should be a local one with other name displayed. The second variable is just a normal local one.

Keyboard Maestro 8.1.1 “Prompt for User Input” Macro

Prompt for User Input.kmmacros (3.0 KB)

All Local Variables MUST begin with "Local". So you need to name your variables:
Local__Variable 1


Thanks. Makes sense for me now.

1 Like

I cannot figure out why this is not working for me. I created a Local var and then tried to display it in a KM Window and nothing comes up. I was wondering if I should take the "Local" off the name when displaying it, but that didn't work either. What am I doing wrong?

In the display action your variable name has two underscores in it whereas when you set the variable to a value you have only a single underscore in it. That’s why it’s not working.