Old 08-12-2021, 12:40 AM   #1
fripholm
Human being with feelings
 
Join Date: Jan 2011
Posts: 69
Default Detect mouse button or key press without script GUI?

I'm looking for a way to detect mouse button and/or key presses from a script in Reaper. I didn't find a way to do it without also having a GUI for the script. In this case a dedicated GUI is not an option.

Is there really no way?
fripholm is offline   Reply With Quote
Old 08-12-2021, 02:28 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,902
Default

reaper.JS_VKeys_GetState


From JS_ReaSriptAPI extension.
X-Raym is offline   Reply With Quote
Old 08-12-2021, 02:46 AM   #3
fripholm
Human being with feelings
 
Join Date: Jan 2011
Posts: 69
Default

Thanks, X! Exactly what I was looking for.

I haven't been able to check it but I'm wondering if the following statement from your own docs about this function is still true?

Quote:
* Mouse buttons and modifier keys are not (currently) reliably detected, and JS_Mouse_GetState can be used instead.
fripholm is offline   Reply With Quote
Old 08-12-2021, 03:46 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,902
Default

text from my doc is generated from reaper. I didnt add anything manually in the function doc. So all this is still true!
X-Raym 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 02:31 PM.


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