Jump to content

Set up CTRL+Click = Right Click

I use a pen tablet (Wacom) sometimes for working, and I have the buttons on my pen set to do other commands that I use more often, however, it would be great if I was able to hold control on my keyboard (or any other key) + tap with my pen to be able to do a Right click, just like you are able to do it on iMacs.

 

Is this possible? I was looking into AutoHotKey, but it looks like it's not something that can be set and left running, more like I would have to do a keystroke to do a right click, which is not what I'm after.

 

I'm on Windows 10 up to date.

 

Any help would be greatly appreciated!

 

PS: I know I can use the Express Keys on the tablet but the way I work this would mean switching either my right hand to press one of the keys or my left which is further away because I set my keyboard (full size) next to my Wacom, so it's a lot of hand movements for every time i want to right click, where the way i'm after I just have to move my left thumb and not switch my right hand position. 

Motion Designer and 3D Generalist

My system specs: Ryzen 1700 - G. Skill Flare X 32GB - 2x EVGA 1070 SC - Windows 10 Home

Link to comment
Share on other sites

Link to post
Share on other sites

AHK can do this sort of stuff, I actually set it up something like this inspired by a piece of code i found here:

https://stackoverflow.com/questions/11604334/autohotkey-ctrlclick-right-click

;when ctrl+left mouse button is pressed
^LButton::
  Send {Click, down, right}
  Return

;when ctrl+left mouse button is 'up', not held anymore
^LButton Up::
  Send {Click, up, right}
  Return

This works with my mouse, not with my Wacom pen though, which looks like it 'reserves' the modifier keys (Ctrl, alt, win, shift, including the ones on the other side).

It's probably a lot easier to do this with the Wacom settings, have you considered using the the buttons on the pen for this?


Otherwise, a larger keyboard short will likely work too, like this:

; Ctrl+alt+A
^!a::
  Send {Click, down, right}
  Sleep, 75
  Send {Click, up, right}
  Return

Of course check if there are no other program using this combination of keys.

But this will trigger if you press Ctrl+Alt+A and just click down and up quickly where ever your mouse is at the time.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, Minibois said:

AHK can do this sort of stuff, I actually set it up something like this inspired by a piece of code i found here:

https://stackoverflow.com/questions/11604334/autohotkey-ctrlclick-right-click


;when ctrl+left mouse button is pressed
^LButton::
  Send {Click, down, right}
  Return

;when ctrl+left mouse button is 'up', not held anymore
^LButton Up::
  Send {Click, up, right}
  Return

 

Thanks for the reply.

 

I tried this with my Wacom and it worked perfectly (not sure why it didn't work for you), but for some reason, my desktop wallpaper area goes nuts whenever i run the script and it has a very strange behavior where wherever i move my mouse, my wallpaper is replaced with a solid color and later on it's the opposite.

 

I think i'm going to stick with using the express keys on my wacom, at least it does not give me a strange behavior.

 

Thanks again for the help tho!

 

Motion Designer and 3D Generalist

My system specs: Ryzen 1700 - G. Skill Flare X 32GB - 2x EVGA 1070 SC - Windows 10 Home

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×