A button can trigger hotkeys or a command but not both.
The button's command gets triggered when you press the left mouse button. If instead you want it to happen when you release the button, you must use SetButtonHotkey and call the command from a hotkey that was defined with HotkeyUp.
|