I'm familiar with the practice of inserting "&". I've been using that in my command buttons on my custom menu system for quite a while.
I was referring to the shortcut
parameter which I've highlighted here:
AddCommandToMenuBar("Command Area/Open", "", "CloseCommandArea(0)")For instance, if I place an "O" or a "C" there, the Command Area menu will look something like this:
Open O
Close CBut I was curious if someone could have it like this:
Open Alt+O
Close Alt+CThe goal being that they could simply press Alt+O or Alt+C, without having to first open the Command Area menu, or press a 3 key shortcut like Alt+C+O.
Here are some clips from the programming manual; "shortcut" is the parameter that I'm asking about. The manual doesn't explain much about it.
Quote:AddCommandToMenubar(command, shortcut , program)
It takes three parameters: The title of the custom menu along with the text of its
selectable item, the shortcut key, if any, and the programming command to run.