RPR kbd RunCommandThroughHooks
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR kbd RunCommandThroughHooks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR kbd RunCommandThroughHooks
Contents |
kbd_RunCommandThroughHooks()
bool kbd_RunCommandThroughHooks(KbdSectionInfo *section, int *actionCommandID,int *val, int *valhw, int *relmode, HWND hwnd)
call this on executing any action, will return TRUE if it handled it. this is so that if your window gets a WM_COMMAND, you can call this before your handlers to see if it's been overridden or a custom action. val, valhw, and relmode should point to integers representing the MIDI parameter. If *valhw >= 0 then the midi parameter is ((val<<7)|valhw) (which means 0..16383) and absolute. Otherwise, if *valhw is -1, val is 0..127, and relmode can be 0 (Absolute), or 1-3 for the different MIDI CC relative modes. Note that the hook function MAY return false but have modified these parameters. actioncommandID may get modified
Parameters
KbdSectionInfo *section, int *actionCommandID,
int *val,
int *valhw, int *relmode, HWND hwnd
Returns
bool
Example
See Also
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR kbd RunCommandThroughHooks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR kbd RunCommandThroughHooks