I want to make my touchpad right click as left click

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
seanmamasde
Posts: 4
Joined: 10 Dec 2022, 13:33
Contact:

I want to make my touchpad right click as left click

10 Dec 2022, 13:41

As the title suggests. I want to make my touchpad right click functions as left click, but it can still access the right click menu via two-finger click, just like how it's the default behavior on Macs. Any idea how to achieve this? any help or advice are appreciated, thanks. :D
wetware05
Posts: 750
Joined: 04 Dec 2020, 16:09

Re: I want to make my touchpad right click as left click

10 Dec 2022, 16:16

Hi.

If the key is not standard, with the following script you can find out the code of that key. Then it's a matter of reassigning it another function.

Code: Select all

SetFormat, Integer, Hex
Gui +ToolWindow -SysMenu +AlwaysOnTop
Gui, Font, s14 Bold, Arial
Gui, Add, Text, w100 h33 vSC 0x201 +Border, {SC000}
Gui, Show,, % "// ScanCode //////////"
Loop 9
  OnMessage( 255+A_Index, "ScanCode" ) ; 0x100 to 0x108
Return

ScanCode( wParam, lParam ) {
 Clipboard := "SC" SubStr((((lParam>>16) & 0xFF)+0xF000),-2) 
 GuiControl,, SC, %Clipboard%
}
User avatar
mikeyww
Posts: 27192
Joined: 09 Sep 2014, 18:38

Re: I want to make my touchpad right click as left click

10 Dec 2022, 17:14

I think the issue is that both RButton and the two-finger tap generate a right click. Although RButton can be remapped, I am not aware of a way to remap the two actions differently. I have read that Windows controls this aspect of the touchpad, but perhaps someone knows a way around it. You may want to have a look at AutoHotInterception.
seanmamasde
Posts: 4
Joined: 10 Dec 2022, 13:33
Contact:

Re: I want to make my touchpad right click as left click

10 Dec 2022, 21:42

wetware05 wrote:
10 Dec 2022, 16:16
Hi.

If the key is not standard, with the following script you can find out the code of that key. Then it's a matter of reassigning it another function.

Code: Select all

SetFormat, Integer, Hex
Gui +ToolWindow -SysMenu +AlwaysOnTop
Gui, Font, s14 Bold, Arial
Gui, Add, Text, w100 h33 vSC 0x201 +Border, {SC000}
Gui, Show,, % "// ScanCode //////////"
Loop 9
  OnMessage( 255+A_Index, "ScanCode" ) ; 0x100 to 0x108
Return

ScanCode( wParam, lParam ) {
 Clipboard := "SC" SubStr((((lParam>>16) & 0xFF)+0xF000),-2) 
 GuiControl,, SC, %Clipboard%
}
Yeah I knew the crazy script to find out unknown key thing but the problem is, they are both the same (from right clicking and double tapping)
seanmamasde
Posts: 4
Joined: 10 Dec 2022, 13:33
Contact:

Re: I want to make my touchpad right click as left click

10 Dec 2022, 21:45

mikeyww wrote:
10 Dec 2022, 17:14
You may want to have a look at AutoHotInterception.
Thanks I will look into it :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 199 guests