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,655
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,655
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
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:03 AM.


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