Old 11-15-2018, 09:47 PM   #1
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 70
Default Can reaper detect the action of mouse?

Can reaper tell what are the users doing with mouse? Such as <Is the left button down?> <Is the left button up?>,etc. I knew the <get_action_context> can tell which direction you are scrolling the mousewheel, but I'm wondering if I can do it a bit further
dsyrock is offline   Reply With Quote
Old 11-16-2018, 02:50 AM   #2
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,052
Default

Yeah its possible native only gfx window and via JS API extension to capture anywhere from reaper (getmousestate or intercept/peek messages). With JS extension you can do complex stuff
Sexan is offline   Reply With Quote
Old 11-16-2018, 03:29 AM   #3
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 70
Default

Quote:
Originally Posted by Sexan View Post
Yeah its possible native only gfx window and via JS API extension to capture anywhere from reaper (getmousestate or intercept/peek messages). With JS extension you can do complex stuff
So it's not any way to capture the mouse's action in arrange view?
dsyrock is offline   Reply With Quote
Old 11-16-2018, 06:02 AM   #4
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 599
Default

As Sexan mentioned, Julian Saders' Plugin can do exactly that:

https://forum.cockos.com/showthread.php?t=212174

In addition to that: To check, whether the mouse is currently in Arrange-View, you can use reaper.BR_GetMouseCursorContext()

https://mespotin.uber.space/Mespotin...eCursorContext
__________________
Lua Coders of the world: UNITE!
This Saturday, 11am NewYorkCity time, head over to this thread:
https://forum.cockos.com/showthread....98#post2067798
mespotine is online now   Reply With Quote
Old 11-16-2018, 06:16 AM   #5
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 70
Default

Quote:
Originally Posted by mespotine View Post
As Sexan mentioned, Julian Saders' Plugin can do exactly that:

https://forum.cockos.com/showthread.php?t=212174

In addition to that: To check, whether the mouse is currently in Arrange-View, you can use reaper.BR_GetMouseCursorContext()

https://mespotin.uber.space/Mespotin...eCursorContext
Oh God! I totally forgot the js's extention! Thx Sexan and mespotine
dsyrock 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 10:57 AM.


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