Page 1 of 1

I want to make my touchpad right click as left click

Posted: 10 Dec 2022, 13:41
by seanmamasde
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

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

Posted: 10 Dec 2022, 16:16
by wetware05
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%
}

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

Posted: 10 Dec 2022, 17:14
by mikeyww
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.

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

Posted: 10 Dec 2022, 21:42
by seanmamasde
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)

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

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