Google Chrome Tab Mix Plus add-on for Firefox has a handy feature where in you can switch to previous and next tabs by scrolling your mouse (with the cursor on tab bar) up and down respectively. We can achieve the same in Google Chrome using AutoHotKey.

ChromeTabsScroll

  1. Download AutoHotKey and install it if you don’t have it already.
  2. Save this small ChromeTabsScroll.ahk file (the contained code can be found at the bottom of this post) and place it anywhere in your computer. Double click this .ahk file.
  3. You may need to adjust the number in line 12. This is the height of Chrome’s tab bar.

That’s it. Now you can take your mouse over the tab bar at the top of Chrome and turn your mouse wheel forward and backward to switch to previous and next tab.

Content of the ChromeTabsScroll.ahk file:

; Relevant blog post: http://www.howtotuts.com/2008/09/07/how-to-switch-tabs-in-chrome-by-using-the-mouse-wheel/
; Credit: http://www.autohotkey.com/forum/viewtopic.php?p=218611#218611
; Author: SKAN - Suresh Kumar A N

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force

#IfWinActive ahk_class Chrome_XPFrame
 ~$WheelDown::
 ~$WheelUp::
    MouseGetPos,, yaxis
    IfGreater,yaxis,23, Return
    IfEqual,A_ThisHotkey,~$WheelDown, Send ^{PgDn}
                                 Else Send ^{PgUp}
 Return
#IfWinActive

Credit: Suresh Kumar A N

Related: It is also possible using AutoHotKey to switch between taskbar items by scrolling your mouse wheel. Click here to learn how.

We hope you found this how-to helpful. Please social bookmark this tutorial and help us and others. Thanks in advance.

Related posts:

  1. How to switch windows by scrolling the mouse
  2. How to replace mouse click with a key press
  3. How to paste and go in Chrome using keyboard
  4. How to set keyboard shortcuts in Chrome
  5. How to activate programs in taskbar by hovering the mouse

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: ,

This post has 5 comments.

  1. Peter
    09 Sep 08
    4:12 am

    Note: You will need to change line 8 above if you are using Vista.

    Change: ‘ahk_class Chrome_XPFrame’

    to: ‘ahk_class Chrome_VistaFrame’

    Thanks for the script.

  2. The animation of the tabs is nice. Can pls you tell me how did you create the animation? what is the software you use to create the animation?

  3. admin
    13 Sep 08
    10:53 am

    Hi Gopi, I used Techsmith Camtasia studio.

    By the way, which theme do you use for WordPress? Is it a free download?

  4. Gopinath M
    14 Sep 08
    4:37 pm

    Thanks for the information.

    My wordpress theme is custom made with the help of a HTML designer. Fore more details, check the about page on the blog

  5. vhanla
    28 Sep 08
    8:37 pm

    #NoEnv
    #SingleInstance force
    #IfWinActive ahk_class Chrome_XPFrame

    RButton::
    GetKeyState, rightMouse, RButton, P ; right mouse pressed
    if rightMouse = D
    {
    RButton & WheelUp::Send ^{Tab}
    Rbutton & WheelDown::Send ^+{Tab}
    }
    send,{RButton}

    #IfWinActive

    This would be helpful if you like to use right button and scrolling

Close
E-mail It