Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 03-14-2023, 06:37 PM   #1
skylar_battles
Human being with feelings
 
Join Date: Mar 2022
Posts: 1,522
Default Control+left-click emulates right-click setting doesn't work with MK slicer&80iciomod

I'm on a Mac so ticking "Control+ left-click emulates right click (control key will be unavailable as a modifier)" helps my setup immensely because this causes Reaper's behavior of the control key to match the operating system.

When using scripts though this is not honored. Is there a way to get Control+left-click emulates right-click" to be applied when using scripts? Could it be scripted? Thanks so much.

Last edited by skylar_battles; 03-20-2023 at 08:39 PM.
skylar_battles is offline   Reply With Quote
Old 03-18-2023, 06:12 PM   #2
skylar_battles
Human being with feelings
 
Join Date: Mar 2022
Posts: 1,522
Default

Wrong place to ask for this? I would think it would have to be scripted?
skylar_battles is offline   Reply With Quote
Old 03-18-2023, 06:18 PM   #3
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,369
Default

It works here in gfx scripts.

(Adding support for that option to the next version of ReaImGui.)
cfillion is offline   Reply With Quote
Old 03-19-2023, 05:33 PM   #4
skylar_battles
Human being with feelings
 
Join Date: Mar 2022
Posts: 1,522
Default

What are gfx scripts?

To clarify the script I'm using consistently where I notice it are MK slicer and the MK slicer 80icio mod. Right click is super important in those

Not familiar with ReaImGui but if it's a simple as ticking an box in the ReaImGui prefrences that would be great!
skylar_battles is offline   Reply With Quote
Old 03-19-2023, 06:58 PM   #5
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,369
Default

Quote:
Originally Posted by skylar_battles View Post
What are gfx scripts?
gfx is REAPER's built-in functions for ReaScript GUIs. MK Slicer and 80icio's mod are made with it.

REAPER's right click emulation works by sending a short right click when Ctrl + left mouse button are pressed (+ disables Ctrl). For a brief time, both the left and right buttons are "down". It seems that MK Slicer prioritizes the left click and ignores the right click. The script would need to be changed to prioritize the right click instead.



EDIT: Quick fix for MK Slicer 3.03:

Lines 7451 and 7480:
Code:
if mouseR_Up_status == 1 --[[and not Wave:mouseDown()--]] then
(Not perfect as it still moves the edit cursor from the left click.)

Last edited by cfillion; 03-19-2023 at 07:19 PM.
cfillion is offline   Reply With Quote
Old 03-19-2023, 09:50 PM   #6
skylar_battles
Human being with feelings
 
Join Date: Mar 2022
Posts: 1,522
Default

Hey Christian! Thanks for the response!


A little hesitant (and honestly slightly unsure of how) to change the script if it indeed would move the edit cursor as well with this workaround.

Also I'd probably find it confusing for the 80icio mod to not behave this way.

Will the newer ReaImGui make it easier and intuitive to apply this system-wide?
skylar_battles is offline   Reply With Quote
Old 03-20-2023, 09:52 AM   #7
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,369
Default

Quote:
Originally Posted by skylar_battles View Post
A little hesitant (and honestly slightly unsure of how) to change the script if it indeed would move the edit cursor as well with this workaround.

Also I'd probably find it confusing for the 80icio mod to not behave this way.
The best solution would be a proper fix in those scripts.

Quote:
Originally Posted by skylar_battles View Post
Will the newer ReaImGui make it easier and intuitive to apply this system-wide?
It will follow the REAPER preferences and behave the same way as gfx.
cfillion is offline   Reply With Quote
Old 03-20-2023, 07:42 PM   #8
skylar_battles
Human being with feelings
 
Join Date: Mar 2022
Posts: 1,522
Default

Ok so from what I understand when this is implemented simply synchronizing my packages should enable it to work as desired?
skylar_battles is offline   Reply With Quote
Old 03-20-2023, 07:58 PM   #9
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,369
Default

In scripts that are made using ReaImGui and that don't prioritize the left mouse button, yes.

For MK slicer and its mod, which are gfx-based and can already support REAPER right click emulation, the mouse button priority needs to be fixed in those scripts.
cfillion is offline   Reply With Quote
Old 03-20-2023, 08:40 PM   #10
skylar_battles
Human being with feelings
 
Join Date: Mar 2022
Posts: 1,522
Default

Thanks for your response! I'll send this thread to them both.
skylar_battles is offline   Reply With Quote
Old 03-22-2023, 05:56 PM   #11
80icio
Human being with feelings
 
Join Date: Mar 2016
Location: Italy
Posts: 200
Default

Quote:
(Not perfect as it still moves the edit cursor from the left click.)
the only workaround I've found is by adding 0.1 seconds of 'waiting time' after gfx.mousecap==3

looks like it works
80icio 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 08:26 AM.


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