Is there a way to reduce the "height" of the steps of the mouse's wheel?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
forikundo
Posts: 2
Joined: 21 Mar 2023, 15:25

Is there a way to reduce the "height" of the steps of the mouse's wheel?

Post by forikundo » 31 Mar 2023, 04:16

Hi, windows scrolling is set by steps, but it feels so chunky, not smooth at all. The lessen that Windows lets you is 1 line (around 120 pixels) per notch (see image) but Its still way too much. I got the feeling that reduce this with AHK should be easy but cant find a way.

Someone got an idea on how to solve this? thanks! :)

Rohwedder
Posts: 7624
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Is there a way to reduce the "height" of the steps of the mouse's wheel?

Post by Rohwedder » 01 Apr 2023, 04:01

Hallo, which image?
The only thing I can think of in this context is:
Some programs e.g. Browser and Microsoft Office (but not Notepad or Notepad++) consider SystemParameters.WheelScrollLines Property
Gets a value that indicates the number of lines to scroll when the mouse wheel is rotated.
I use the (v1) version of:

Code: Select all

#Requires AutoHotkey v2.0
<!WheelUp:: ;LAlt + Wheel
<!WheelDown::
{ ;HKEY_CURRENT_USER\Control Panel\Desktop: WheelScrollLines: 1-5
	Static Wheel := 3
	ToolTip("WheelScrollLines: " Wheel:=Max(Min(0 Wheel+2*(A_ThisHotkey="<!WheelUp")-1,5),1))
	DllCall("SystemParametersInfoA","uint",0x69,"uint",Wheel,"uintP",0,"uint",1|2)
	Sleep(200), ToolTip()
}
to set that value.

Post Reply

Return to “Ask for Help (v2)”