This AutoHotkey (AHK) script allows seamless tab switching in supported applications by scrolling the mouse wheel while hovering over the tab bar. It provides an intuitive and efficient way to navigate between open tabs in browsers and other multi-tab applications.
- 🔄 Effortless Tab Switching – Use the scroll wheel to switch tabs quickly.
- 💻 Works Across Multiple Applications – Supports browsers (Chrome, Firefox, Edge, etc.), Windows Explorer, and more.
- ⚙️ Customizable Settings – Adjust return behavior, scroll sensitivity, and activation area.
- ⚡ Lightweight & Fast – Runs with minimal performance impact.
- 🛠 Built-in Debug Mode – Real-time GUI monitoring for troubleshooting.
Demo GIF
Either:
- Download .exe and install
- Install AutoHotKey, run .ahk file.
- Hover over the tab bar in a supported application.
- Scroll Up → Move to the previous tab.
- Scroll Down → Move to the next tab.
- Middle-click (optional) → Open the debug GUI (if enabled in settings).
Modify the following global variables in scroll-tabs.ahk
.
If using the .exe the config gets automatically put in C:\Users\{username}\AppData\Roaming\TabGlide\TabGlide_config.ini
.
; Add all suitable programs here :) I tried sorting them alphabetically
global ALLOWED_PROGRAMS := BuildLowercaseMap( [
"brave.exe",
"chrome.exe",
...
] )
global TOP_REGION_PIXEL_LIMIT := 50 ; Fine tune - How forgiving the Y coordinate is
global ENABLE_FOCUS_RETURN := true ; Controls whether focus returns to the previous window (true) or remains on the new one (false)
global RETURN_AFTER_MS := 700 ; Fine tune - Return to the previous active window after _ in ms
global DEBUG := false ; Debug mode
global DEBUG_GUI_BIND := "$F12" ; Debug bind - https://www.autohotkey.com/docs/v2/Hotkeys.htm
This script is compatible with the following applications:
- ✅ Chrome, Firefox, Edge, Opera, Brave
- ✅ Windows Explorer
- ✅ Windows Terminal
To customize compatibility, modify the ALLOWED_PROGRAMS
list in the script.
- AutoHotkey v2 – A powerful scripting language for Windows automation.
Q: The script is not working in my browser.
A: Ensure that your programs’s process name is included in the ALLOWED_PROGRAMS
list.
Q: How can I adjust the scroll sensitivity?
A: Modify the TOP_REGION_PIXEL_LIMIT
value in the script settings.
This project is licensed under the GNU GENERAL PUBLIC LICENSE
Enjoy effortless tab navigation with Scroll-Wheel Tab Switching! 🚀