The trackpad's left button has stopped clicking so until I replace the keyboard, I have switched to using the touchpad. Never worked 100% reliably, with right button responding only to every second click and the left button becomes virtually sticky at times, but the greatest nuisance has always been the proneness to accidental touching while typing. There were some driver versions which tried to address that but never reliably.
So I have some up with an idea - and gemini put it to action - that the touchpad and its left click should only work when fn button is pressed. Makes you use the mouse as a minigun, so no drinking coffee while navigating the screen but it has become completely immune to accidental touches.
Here is how to do it.
1. Install autohotkey
2. create a file touchfreeze.ahk
3. modify its content with below code.
4. save the file and double-click it.
enjoy.
#NoEnv
SendMode Input
; State variable to keep track of whether Fn key is pressed
FnKeyPressed := 0
; Check if the Fn key (SC163) is being pressed
SC163::
FnKeyPressed := 1
BlockInput, MouseMoveOff ; Enable mouse input
SetTimer, DisableMouseInput, -1 ; Set a timer to disable mouse input after 1 ms
return
; Check if the Fn key (SC163) is being released
SC163 Up::
FnKeyPressed := 0
BlockInput, MouseMove ; Disable mouse input immediately
return
; Check if the left mouse button is pressed down
LButton::
if FnKeyPressed = 1
Send, {LButton Down}
return
; Check if the left mouse button is released
LButton Up::
Send, {LButton Up}
return
DisableMouseInput:
If !FnKeyPressed
BlockInput, MouseMove ; Disable mouse input
return
Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
Useful improvement of x230 touchpad functionality
-
- Similar Topics
- Replies
- Views
- Last post
-
-
X230 Precision Touchpad
by TPFanatic » Tue Feb 06, 2024 9:25 pm » in ThinkPad X200/X201/X220 and X300/X301 Series - 0 Replies
- 650 Views
-
Last post by TPFanatic
Tue Feb 06, 2024 9:25 pm
-
-
-
T460s - Touchpad doubleclicks occasionally when clicking once
by Sanras » Sat Mar 23, 2024 5:19 pm » in ThinkPad T430-T490 / T530-T590 Series - 0 Replies
- 321 Views
-
Last post by Sanras
Sat Mar 23, 2024 5:19 pm
-
-
-
Thinkpad T520 touchpad replacement issu
by fredboyce » Thu May 09, 2024 3:12 am » in ThinkPad T400/T410/T420 and T500/T510/T520 Series - 2 Replies
- 208 Views
-
Last post by kfzhu1229
Thu May 09, 2024 8:10 pm
-
-
- 1 Replies
- 2300 Views
-
Last post by TPFanatic
Tue Nov 21, 2023 9:31 am
Who is online
Users browsing this forum: No registered users and 12 guests