Last active
December 2, 2017 23:28
-
-
Save fm3/e3d9f13dd368ec91b352071ba7ecb642 to your computer and use it in GitHub Desktop.
Firefox: Tab Wheel Scroll using AutoHotkey for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MaxHotkeysPerInterval 200 | |
shouldFire() | |
{ | |
CoordMode, Mouse, Screen | |
MouseGetPos, mouseX, mouseY, MouseHoverWin | |
WinGetPos, winX, winY, width, height, ahk_id %MouseHoverWin% | |
WinGetClass, class, ahk_id %MouseHoverWin% | |
if (mouseY - winY >= 0 && mouseY - winY < 40 && class == "MozillaWindowClass") { | |
return 1 | |
} | |
} | |
#If, shouldFire() | |
WheelUp:: | |
MouseGetPos, mouseX, mouseY, MouseHoverWin | |
ControlSend,, {ctrl down}{shift down}{Tab}{ctrl up}{shift up}, ahk_id %MouseHoverWin% | |
return | |
WheelDown:: | |
MouseGetPos, mouseX, mouseY, MouseHoverWin | |
ControlSend,, {ctrl down}{Tab}{shift up}, ahk_id %MouseHoverWin% | |
return | |
#If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment