Quote:
Originally Posted by Justin
Those new APIs require a valid KbdSectionInfo pointer rather than 0, use reaper.SectionFromUniqueID(0)
|
Thanks! What exactly is 'desclen' in GetActionShortcutDesc do? I set it to -1, 0, 1,255, doesn't seem to make any difference on what is returned,..
Code:
id = 1012 -- (View: Zoom in horizontal) This action has 4 keys associated on my setup.
sfuID = reaper.SectionFromUniqueID(0)
count = reaper.CountActionShortcuts(sfuID, id)
for index = 0, count-1 do
retval, desc = reaper.GetActionShortcutDesc(sfuID, id, index, "", -1)
reaper.ShowConsoleMsg(desc .. '\n')
end
Results:
+
=
Num +
Up