Skip to content

Instantly share code, notes, and snippets.

@neoOpus
Forked from thefloodshark/.ahk
Created October 20, 2021 09:07
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 neoOpus/148621f03288b9c0dc5d936a6411f665 to your computer and use it in GitHub Desktop.
Save neoOpus/148621f03288b9c0dc5d936a6411f665 to your computer and use it in GitHub Desktop.
Left/Right Mouse Wheel Click Tab Switch
#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.
; Works on Chrome and Mozilla (untested on others)
; left (with paste then tab)
WheelLeft::
Send ^+{Tab}
Send {tab}
Send ^v
Send {tab}
Return
WheelRight::
Send ^{Tab}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment