Results 1 to 2 of 2

This is a discussion on Middle Click for Chrome within the Chrome Tips & Tricks section, part of the Google Chrome category: I don't like holding down 2 keys when doing hotkeys. So I wrote this little ahk script to do middle ...


  1. #1
    MilesAhead's Avatar
    MilesAhead is offline Junior Member
    Join Date
    May 2010
    Posts
    28

    Default Middle Click for Chrome

    I don't like holding down 2 keys when doing hotkeys. So I wrote this little ahk script to do middle mouse click opens link in new tab in foreground:

    Code:
    SendMode Input
    
    #IfWinActive, ahk_class Chrome_WidgetWin_0
    ^LButton::
    Send, ^+{LButton}
    Return
    The #IfWinActive line limits the hotkey's use to when Chrome is the active window.
    Works well for me. You can also use it with Speed-dial to open a dial in a new tab instead of replacing the SD page.

    edit: for those not familiar with ahk hotkey apps, you leave it run in system tray to make the hotkey active. Quit the program to get rid of the hotkey.
    If you download AutoHotKey package you can also wrap it in the interpreter as a self-contained exe file and run it like any .exe.

    edit2: I forgot middle mouse button is also used to drag scroll. I changed the hotkey line in the script to
    ^LButton so that at least you only have to hold down Control when left clicking a link to open in new tab
    in foreground.
    Last edited by MilesAhead; 08-31-2010 at 11:42 PM. Reason: new info
    "I don't want to belong to any club that would have me as a member."
    - Groucho Marx

  2. #2
    MilesAhead's Avatar
    MilesAhead is offline Junior Member
    Join Date
    May 2010
    Posts
    28

    Default Click and Control-t Transpose

    I included the Control-Left Click hotkey above with some other hotkeys. Shift-Left Click to open link in background tab.. Control-t to transpose 2 characters left of the caret in certain apps including chromium based browsers, notepad, EditPad Lite etc..

    It's called Transpose and you can download from this link:

    http://www.favessoft.com/hotkeys.html

    It's free and comes with the AHK script source, icon and readme how to add programs to the groups for enabling hotkeys.

    As of Chromium 10.0.602.0 the Open Link in Foreground Tab is working again.
    At least it is for me.
    "I don't want to belong to any club that would have me as a member."
    - Groucho Marx

Similar Threads

  1. Middle Click does not open a link in a new tab
    By andrewaaa5 in forum Chrome Troubleshooting
    Replies: 11
    Last Post: 04-27-2011, 02:15 AM
  2. change double click context menu to single click.
    By bmorency in forum Chrome Troubleshooting
    Replies: 0
    Last Post: 07-25-2010, 02:08 AM
  3. Replies: 0
    Last Post: 05-17-2010, 10:42 AM
  4. Middle click scrolling
    By kirby145 in forum Chrome Talk
    Replies: 4
    Last Post: 03-31-2009, 12:03 AM
  5. Middle click scrolling
    By TheCardinal in forum Bugs and Vulnerabilities
    Replies: 2
    Last Post: 03-27-2009, 12:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •