Skip to content

Instantly share code, notes, and snippets.

@AWtnb
Created May 21, 2019 04:43
Show Gist options
  • Save AWtnb/98ba9104a2cef5239f498f733157cc32 to your computer and use it in GitHub Desktop.
Save AWtnb/98ba9104a2cef5239f498f733157cc32 to your computer and use it in GitHub Desktop.
tab changer with Autohotkey
;; Wheel Scroll Tabs for Google Chrome
#If WinActive ("ahk_class Chrome_WidgetWin_1") || WinActive ("ahk_class SUMATRA_PDF_FRAME")
~$WheelUp::
MouseGetPos, x, y
If (y < 45) {
Send, ^+{Tab}
}
else {
Send, {Blind}{WheelUp}
}
Return
~$WheelDown::
MouseGetPos, x, y
If (y < 45) {
Send, ^{Tab}
}
else {
Send, {Blind}{WheelDown}
}
Return
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment