View Single Post
Old 12-02-2022, 04:09 PM  
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
Default

Quote:
Originally Posted by Justin View Post
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
Edgemeal is offline   Reply With Quote