Fast Scrolling Script (alternative to Logitech infinite scroll wheel)

Post your working scripts, libraries and tools for AHK v1.1 and older
a0l0e0x000
Posts: 14
Joined: 26 Dec 2020, 08:27

Fast Scrolling Script (alternative to Logitech infinite scroll wheel)

Post by a0l0e0x000 » 09 Feb 2021, 13:23

When holding Right mouse button scrolling with the scroll wheel will be accelerated.
If you press the Right mouse button and scroll, right-click will not register, hence no unwanted menu will open. If you don't scroll, right-click will work.

Code: Select all

RButton::
FastScroll := 0
hotkey, Wheelup , HK1, on
hotkey, Wheeldown , HK2, on
keywait, RButton
hotkey, Wheelup , HK1, off
hotkey, Wheeldown , HK2, off
if (FastScroll = 0)
{
send, {RButton}
}
return

HK1:
send, {wheelup 4}
if (FastScroll = 0)
{
FastScroll := 1
}
return

HK2:
send, {wheeldown 4}
if (FastScroll = 0)
{
FastScroll := 1
}
return

Return to “Scripts and Functions (v1)”