Assigning Right Click to the right Control Key

Get help with using AutoHotkey and its commands and hotkeys
shashankapanda
Posts: 1
Joined: 28 Aug 2017, 12:17

Assigning Right Click to the right Control Key

28 Aug 2017, 12:25

My HP laptop doesn't have the Dell's Right Click key. I am trying to assign the Right Click to the Right Control key. However I was only partly successful. My script:

RCtrl::
Click Right

managed to assign the Right Click to where the mouse cursor was pointing and not to the "tabbed" position that was selected.

So, does anyone know what script to write in order to get the right Control to right click the contextualized i.e. tabbed or selected item and not the mouse cursor position?
obeeb
Posts: 140
Joined: 20 Feb 2014, 19:15

Re: Assigning Right Click to the right Control Key

28 Aug 2017, 15:31

Not sure if this will do what you want but try:

Code: Select all

RCtrl::
	ControlGetFocus, focused, A
	ControlClick, %focused%, A, , Right
return

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], mmmax, songdg and 54 guests