Skip to content

Instantly share code, notes, and snippets.

@rodmcnew
Last active December 25, 2020 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodmcnew/6842c379365cf01d584a25cda3640a94 to your computer and use it in GitHub Desktop.
Save rodmcnew/6842c379365cf01d584a25cda3640a94 to your computer and use it in GitHub Desktop.
How to Windows
Go to github releases, download, unzip, right click and click "install".
https://github.com/imbushuo/mac-precision-touchpad
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Home::RButton
End::LButton
;Make the middle mouse button scroll down
MButton::
MButtonToggle := 1
loop
{
If (not MButtonToggle) {
break
}
Send {WheelDown}
Sleep 100
}
return
MButton up::
MButtonToggle := 0
return
;Make page up scroll up
PgUp::
PgUpToggle := 1
loop
{
If (not PgUpToggle) {
break
}
Send {WheelUp}
Sleep 100
}
return
PgUp up::
PgUpToggle := 0
return
;Make page down scroll down
PgDn::
PgDnToggle := 1
loop
{
If (not PgDnToggle) {
break
}
Send {WheelDown}
Sleep 100
}
return
PgDn up::
PgDnToggle := 0
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment