Skip to content

Instantly share code, notes, and snippets.

@skibitsky
Last active October 31, 2019 18:37
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 skibitsky/d80da2c7959951d1f02b43dc7760fae5 to your computer and use it in GitHub Desktop.
Save skibitsky/d80da2c7959951d1f02b43dc7760fae5 to your computer and use it in GitHub Desktop.
MacBook Input macro for AutoHotkey. Binds Capslock to Esc and inverts scroll
#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.
#MaxHotKeysPerInterval 500
Capslock::Esc
WheelUp::
Send {WheelDown}
Return
WheelDown::
Send {WheelUp}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment