Old 09-07-2022, 04:14 AM   #1
souk21
Human being with feelings
 
souk21's Avatar
 
Join Date: Mar 2021
Posts: 463
Default Any way to passthrough keys from gfx to main window?

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
souk21 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.