I have a keystroke to call a Script A.
Refer to the hotkey as <*>
The script is contained here: Customize > Keys tab > Script A entry (Checked, hotkey <*> assigned)
I have another Script B which has the same hotkey <*> but it is not checked i.e. is not active.
To change the hotkey action from (Script A > Script B) I need to go to
Customize > Keys tab
And then do the following
Uncheck Script A entry; and
Check Script B entry
Is it possible to create a button to do the above? Change hotkey assignment between Script A and B?
Or you could have separate buttons to turn the variable off and on:
@set glob:MyHotkeyVar
@set glob:MyHotkeyVar=on
If you want to use the toggle button on a toolbar or menu, and have it indicate which mode it is currently in, use this form so that it highlights when the variable is set: