Last active
December 25, 2020 00:47
-
-
Save rodmcnew/6842c379365cf01d584a25cda3640a94 to your computer and use it in GitHub Desktop.
How to Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to github releases, download, unzip, right click and click "install". | |
https://github.com/imbushuo/mac-precision-touchpad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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