Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created March 21, 2024 11:36
Show Gist options
  • Save JoeGlines/083809006b258cf80f62e7362f9ff32c to your computer and use it in GitHub Desktop.
Save JoeGlines/083809006b258cf80f62e7362f9ff32c to your computer and use it in GitHub Desktop.
; Want a clear path for learning AutoHotkey? Go to https://the-Automator.com/Learn
; https://www.autohotkey.com/docs/v2/lib/_HotIf.htm
#SingleInstance
#Requires Autohotkey v2.0+
#HotIf MouseIsOver("ahk_class Shell_TrayWnd")
WheelUp::Send "{Volume_Up}"
WheelDown::Send "{Volume_Down}"
MouseIsOver(WinTitle) {
MouseGetPos ,, &Win
return WinExist(WinTitle " ahk_id " Win)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment