Skip to content

Instantly share code, notes, and snippets.

@sbremer
sbremer / gist:ff85427b567f300d5c56776739291c94
Last active December 31, 2023 11:26
Autohotkey (v2) Middle mouse button scrolling for trackpoint/pointstick (similar to tpmiddle but hardware agnostic)
#Requires AutoHotkey v2.0
#SingleInstance
; Taken from here: https://www.autohotkey.com/boards/viewtopic.php?style=19&f=6&t=83241
; Maybe set Windows options for scrolling to "Multiple lines" but set the setting of how many lines to "1" or "2"
;#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SetMouseDelay -1
SendMode "Input" ; Recommended for new scripts due to its superior speed and reliability.