Hello,
By default, a gfx window with focus will intercept all key presses.
For a script I'm developing, I need to be able to pass through certain keys to REAPER.
Giving back the focus to REAPER would not work here because I first need to check if the keys should trig something inside of the script or pass through.
I tried using JS_API's to send WM_KEYDOWN and VK_DOWN to the main window with no luck.
I read
this page of the Ultraschall docs regarding StuffMIDIMessage, but it seems to be only related to "Add Shortcut-dialog"
A solution would be to parse reaper-kb.ini and send the appropriate command to the main window, but this file doesn't include default shortcuts or shortcuts added since last launch.
And I have to admit converting from mouse_cap + gfx.getchar to a proper keycode is a way over my head
Anyone knows of a workaround ?
Thanks