[SOLVED] How to show the text version of a variable?

Let's say I have a variable like this
and its value is 22

Now, if I use the Display Text and set it to %Variable%Local__myVar%, the window will show me 22.
What if I want the window to actually show the text %Variable%Local__myVar%?

"Escaped percentage characters" might be the briefest answer:

but perhaps you are looking for an automatic generation of such strings from a variable name ?

VariableName -> TextExpansionString


Thank you. Yes that makes sense.

No sure I understand what you mean by this?
Can you clarify?

For example, assuming Keyboard Maestro version 11:

Variable expansion string literally displayed.kmmacros (2.4 KB)

I may be wrong, but it sounds to me like you haven't noticed the menu for the Display action which says:

Screenshot 2023-12-04 at 13.27.08

If you check the "Process Nothing" box, then you will see the "%" markers that you desire.


Thanks. yes, that works.
I saw that before, but never needed to change it.
Now I know what that does. Awesome!