Need Macro To Display Context Menu and Select Menu Item

This is actually the Set Variable to Text action, but I had renamed it to clarify its purpose. The key to determining the actual action is to look at the key words on the Action.
In this case, "Set Variable".

image

You can find it using the menu Edit > Insert Action > by Name...

image

which looks like this:

Just start typing any key words associated with the Action, like "set var"
Then choose from the list (press RETURN or double-click)

OR, if you prefer, you can display the Action Selection Panel (Actions > Show Actions):

image

Getting Started with Keyboard Maestro

For more help, see Getting Started with Keyboard Maestro and the Forum .