On 25/05/2013 at 07:07, xxxxxxxx wrote:
I need to implement some sort of fallback shortcut behaviour. I have a CommandData plugin
and have to make sure it has assigned a hotkey. When the user has not set a specific hotkey
in the Commands Manager i want to assign a fallback hotkey to the CommandData plugin.
I have only found this thread here (Which does not really shed some light on the whole topic) :
1. Are gui.AddShortCut() and gui.GetShortCut() the correct methods ?
2. How does unpacking into integer values work ? The docs are not really specific about that.
> SHORTCUT_ADDRESS - int - Manager ID. (I have no idea which manager is meant)
> ShortcutKey - int - The shortcut key is stored under ID 1 + n*10. (How do I pack for example the A key into an integer ? Or more specifically what is meant with n ?)
Thanks for reading,