Skip to content

Instantly share code, notes, and snippets.

@corbanmailloux
Created January 21, 2015 15:31
Show Gist options
  • Save corbanmailloux/55184ce8b04d66a2e066 to your computer and use it in GitHub Desktop.
Save corbanmailloux/55184ce8b04d66a2e066 to your computer and use it in GitHub Desktop.
Add volume macros to a normal mouse.
#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.
#WheelUp::Send, {Volume_Up}
#WheelDown::Send, {Volume_Down}
MButton & WheelUp::Send, {Volume_Up}
MButton & WheelDown::Send, {Volume_Down}
MButton::Send, {MButton}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment