On 25/05/2013 at 07:07, xxxxxxxx wrote:
Hi,
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) :
https://plugincafe.maxon.net/topic/4786/4668_shortcuts&KW=AddShortcut
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,
Ferdinand