Remap Too Fast Double Click to Single Click

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
enter8
Posts: 102
Joined: 05 May 2016, 16:48

Remap Too Fast Double Click to Single Click

09 Oct 2016, 12:24

My mouse is failing. In about 1 out of every 10 left clicks, it inadvertently double clicks. The good news is that the double click is very quick- faster than if I was double clicking myself, so if I can, based on the speed of the double click, convert very fast double clicks to single clicks, the problem will be resolved.

I've managed to get it working perfectly for the action of clicking/double clicking. It ignores too fast (less than 100 ms) double clicks flawlessly, the only problem is that my script now breaks my click drag behavior. I can no longer select words or multiple files by click dragging. Here's what I've got:

Code: Select all

LButton::
	Presses += 1
	SetTimer, ResetPresses, -100
	If (Presses > 1)
		{
		TrayTip, mousefix, double click too fast_ignored
		}
	else
		{
		Click
		TrayTip, mousefix, single click
		}
	return

	ResetPresses:
	Presses := 0
	return
enter8
Posts: 102
Joined: 05 May 2016, 16:48

Re: Remap Too Fast Double Click to Single Click

09 Oct 2016, 15:30

HotKeyIt wrote:Try this
Perfect! Thanks!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, GollyJer, Lamron750 and 261 guests