View Single Post
Old 04-26-2020, 02:53 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,970
Default

NamedCommandLookup accepts integers as input too, so it can be simplified into:

Code:
local function rprMain(cmdid, flags) 
  cmdid = reaper.NamedCommandLookup(cmdid)
  reaper.Main_OnCommand(cmdid, flags or 0) 
end
cfillion is offline   Reply With Quote