Firefox tab switching using mouse scroll wheel

Post your working scripts, libraries and tools for AHK v1.1 and older
Haswell
Posts: 90
Joined: 21 Feb 2016, 17:11

Firefox tab switching using mouse scroll wheel

21 Mar 2017, 14:59

Script provides tab switching using the mouse scroll wheel in Firefox.

Code: Select all

#MaxHotkeysPerInterval 200
DoWeNeedToFireMouseWheel()
{
	MouseGetPos, x1, y1, hw1
	if (y1 >= 0 && y1 < 80 && WinActive("ahk_class MozillaWindowClass"))
		return 1
}
#If, DoWeNeedToFireMouseWheel()
WheelUp::
	Send ^+{Tab}
return
WheelDown::
	Send ^{Tab}
return
#If
Focusing our efforts on non-productive and non-creative endeavours wastes lives as surely as war.
Jacque Fresco / The best that money can't buy
User avatar
SnowFlake
Posts: 368
Joined: 28 Apr 2015, 05:41
Contact:

Re: Firefox tab switching using mouse scroll wheel

11 Apr 2017, 16:09

nice do you know if it works with chrome also? im on Opera right now so i cant test
:yawn:

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 71 guests