clem’s labs: entry

The author published this entry on Saturday 11 July, 2009 at 11:50. It's been filed in the projects category

3-tap Middleclick on OSX for MacBook & Magic Mouse

Finally, I’ve managed to enable middleclick on my macbook with triple tap. It works using a private osx api for using the macbook multitouch trackpad code and some middleclick code. Middleclick is really useful for all the Firefox junkie who loves to open in a new tab as it doesn’t require to use the keyboard (cmd+click is the default middleclick). MiddleClick should not interfere with the swipe gesture and you should not click the trackpad as it will send a click and middleclick at the same time!

Get MiddleClick (for Snow Leopard)! Enjoy & donate if it brings you joy =)

You can get the source at http://github.com/cl3m/MiddleClick

Updated version with the change from carlosh & galonsky!

The Buzz {32 trackbacks/pingbacks}

  1. Pingback: Open Link in New Tab with Double Click on July 11, 2009
  2. Pingback: MiddleClick wakes up after sleep! on August 18, 2009
  3. Pingback: MiddleClick with a real middle click on September 1, 2009
  4. Trackback: keizie's me2DAY on October 13, 2009
  5. Pingback: Terzo tasto anche sul Pad « Apple’s world tips on October 25, 2009
  6. Pingback: 3-tap Middleclick on OSX for MacBook « Alessio Molteni Dot Com on November 6, 2009
  7. Pingback: Test: Apples neue Zaubermaus – die Magic Mouse | haraldweber.net on November 8, 2009
  8. Pingback: Endlich “mittel Klick” für die Magic Mouse | trinec.de on November 9, 2009
  9. Pingback: MiddleClick: 3-Finger-Tippen in Safari als Mittelklick on November 10, 2009
  10. Pingback: Netzschilder #7 | Macmylife on November 10, 2009
  11. Pingback: Magic Mouse所感 (+ 3-tap MiddleClick) « notohirog on November 10, 2009
  12. Pingback: 向かい風でも軽やかに - Magic Mouseで一週間 on November 11, 2009
  13. Pingback: 3-tap Middleclick on OSX for MacBook & Magic Mouse « Alessio Molteni Dot Com on November 11, 2009
  14. Pingback: Multitouch Pad / MagicMouse: Mittlere Maustaste «  OS X Coder - Entwickeln unter Mac OS X  on November 12, 2009
  15. Pingback: Um review do novo magic mouse on November 12, 2009
  16. Pingback: Hack habilita “clique do meio” no Magic Mouse e toque triplo nos trackpads multi-touch da Apple | MacMagazine on November 12, 2009
  17. Pingback: ข่าวสารเกี่ยวกับ Apple รวมโปรแกรมฟรี Mac และ iPhone ได้ที่นี่ www.imemac.in.th on November 13, 2009
  18. Pingback: How to Enable Three-Finger Middle Click for the Mac Trackpad (and Magic Mouse!) on November 13, 2009
  19. Pingback: Magic Mouse - Der erste Eindruck Maus, Magic, Apple, Mouse, Beitrag, Software, Mighty, Funktionen MXWorker on November 14, 2009
  20. Pingback: Apple Magic Mouse - MacTalk Forums on November 18, 2009
  21. Pingback: Friday Morning News | MacTalk Australia on November 20, 2009
  22. Pingback: 3-tap Middleclick on OSX for MacBook & Magic Mouse « Teddy Hwang on November 20, 2009
  23. Pingback: Who wants a wired Magic Mouse? - Page 2 - MacTalk Forums on November 24, 2009
  24. Pingback: 2718.us blog - Apple Magic Mouse: First Hour Review on December 2, 2009
  25. Pingback: Middle button hack for Magic Mouse « Final Cut Pro on December 3, 2009
  26. Pingback: こんな美しいものをオブジェにするには勿体無い!APPLE『Magic Mouse』を一軍選手にカスタマイズするまとめ « モノコトアメツチ on December 5, 2009
  27. Pingback: ParisLemon » Middleclick For Magic Mouse on December 6, 2009
  28. Pingback: It´s Magic – Mehr Gesten mit der Magic Mouse « Apfelblitz on December 18, 2009
  29. Pingback: Problems with middle click with magic mouse - Mac-Forums.com on December 26, 2009
  30. Pingback: Info Nieuwe iMac, Magic Mouse, Macbook en Mac Mini updates - Pagina 31 - 9lives on January 6, 2010
  31. Pingback: Magic Mouse и Средняя Кнопка | Tag Mac on January 11, 2010
  32. Pingback: Rômulo Lebre – Blog on February 25, 2010

The Conversation {164 comments}

  1. Anonymous 12 July, 09 @ 11:32 pm

    This is awesome, I just got a Macbook and this is one thing I’ve missed. Thank you!

    Just get a high-res version of that mouse icon! :)

  2. Simon Moran 13 July, 09 @ 2:46 pm

    Awesome little app! High res icons would make it complete.

  3. clem 13 July, 09 @ 3:17 pm

    I know the icon look bad, but it stay only in the topbar anyway so it hardly matter.. I’ll try to find a better one or if any artist want to have a shot, make one and mail it to me :)

  4. hapening 13 July, 09 @ 5:17 pm

    This is awesome !!! It’s 100% good for the triple tap…
    It’s working great but a lot of people working on 3d softwares or vidéo editing (maya, 3ds, and a lot of applications) on macbook pro needs to hold down the midlle click and move the mouse at the same time. And there is no solution…
    You are the only hope…
    Maybe a special key pressed at the same time ?
    You are the holy graal for a lot of 3D users…

  5. clem 13 July, 09 @ 5:42 pm

    if you want it with a special key to move the click .. just use the default cmd+click

  6. hapening 13 July, 09 @ 7:31 pm

    cmd+click is a feature in web navigators Safari and Firefox. They “emulate” the middle click with cmd+click. I think it’s not working outside firefox and safari. Anyway it’s not working in 3ds or Maya…

  7. i0ngunn3r 15 July, 09 @ 12:31 pm

    holy shit, you’re my savior! thanks a lot!
    (will be great to launch it as a service and/or without menubar icon)

  8. i0ngunn3r 15 July, 09 @ 12:32 pm

    oh and, it works perfectly on macbook5,1 (mb466), intel mac os x 10.5.7.

  9. Michael 15 July, 09 @ 5:39 pm

    HI! It is a super application!
    One question: how can I do that the app icon would not be shown in the menu bar?

  10. Derek 16 July, 09 @ 2:05 am

    Thanks so much! I’m a recent PC convert who loves the multi-touch but was sorely missing middleclicking links to open in new tab. A question: is there a way to use middleclick to close a tab by triple tapping on the tab itself?

  11. i0ngunn3r 16 July, 09 @ 9:50 am

    Derek, you can use MultiClutch (or built-in multitouch features in Firefox 3.5) to make a hotkey for the touchpad gesture.

  12. Espen 27 July, 09 @ 2:06 am

    Hey,

    this is SO great. I just have one problem: I reeealy need a version that command-shift-clicks instead of just command-clicks.. This is because I use opera, and I want the middle-click to open the link in a new BACKGROUND tab, eg. a tab that doesn’t hide the content of the current tab.

    Could you please release a version of your app that does this? If you do that, you would make my day, and possibly also be a hero in the Opera-community =)

    Thanks in advance :)

  13. Tony L 29 July, 09 @ 8:51 am

    Way cool. Have really wanted this since switching to Macs a couple of years ago.

    One issue, when machine comes up out of sleep, middleclick is gone and app has to be restarted. Would be good if this was fixed but still using it neverless.

    Tony.

  14. Alex 02 August, 09 @ 3:52 pm

    Awesome! I wonder if this could be made into a firefox extension that way it loads only with Firefox and I don’t have to worry about is it running every time.

  15. Adam 06 August, 09 @ 2:42 am

    Whenever I close my macbook and let it standby, MiddleClick seems to shut down. Is there anyway to keep it continually running?

  16. s 09 August, 09 @ 11:32 am

    any update?

  17. clem 11 August, 09 @ 11:49 am

    There is known issues when it comes back from deep sleep. I’ve tryed some hack(The app relauch itself) to make it more robust but it isn’t so good yet. Hopefully I’ll find a workaround someday!

  18. Blair Mitchelmore 20 August, 09 @ 5:07 am

    I think I just came. I’ve missed middle click so much. Thank you for this.

    But seriously, get a better icon. I’m a shitty artist or I’d do one for you.

  19. Dave 30 August, 09 @ 12:05 am

    For me, the middle-click event isn’t pass through Chicken-of-the-VNC to my Linux box running the VNC server software. Has anyone gotten this to work?

  20. Brandags 30 August, 09 @ 1:06 am

    I downloaded this program, and see it on the menu bar, but am having trouble getting it to work. I’ve tried triple-tapping, tripple-clicking, and using a 3-finger tab and a 3-finger click, but none of them seem to be open a tab in a new browser window or closing an existing tab by clicking it. Tried in Firefox and Safari. What else do I need to do to get this working? I’m really missing my middle click!

  21. Dave 31 August, 09 @ 6:00 pm

    I got it to work for what I wanted to do. This software makes a triple tap create a command-click event. I just had to set Chicken-of-the-VNC to map the command-click event to a middle-click under the emulation settings of Connection Profiles.
    Thanks!

  22. Joseph 01 September, 09 @ 8:20 pm

    Love this. Cant live without it anymore. One question. How can I make it start when I turn on my computer? If I turn off my mac then turn it back on, I have to re open it again… :(

  23. clem 01 September, 09 @ 11:37 pm

    MiddleClick is updated and do a real middle click instead of a cmd+click! Enjoy =)

    Joseph: You can auto-start by going into System Preference->Accounts->Login items and add MiddleClick.

  24. Kevin 02 September, 09 @ 12:38 am

    I just read your comment on my blog, thanks for the tip+app!
    I knew that you could do a real middle click with CGPostMouseEvent but I don’t really know enough about the private api(I tried various functions and none registered a 3 finger tap) or os x development to write a daemon to intercept a 3 finger tap.
    It’s sad that we need a daemon to do this, it should be built-in. That’s an debate for another time though.

  25. Joseph Cohen 02 September, 09 @ 12:22 pm

    Thank you clem for an answer. Actually what I did, was added middle click to the dock then right clicked it and chose, open at login.

    And the update is great! Now I can triple tap and scroll in firefox! I love this app even more!

  26. Dave 02 September, 09 @ 3:24 pm

    this is awesome! thankyou so much. if this could become a preference pane item that would be awesome (as its the sort of thing id like to set and forget (auto-restart included in the pane).

    i had this in my head as something that would be very cool, and you obviously thought the same thing!

    Thanks again!

  27. Dave 03 September, 09 @ 5:28 am

    Awesome! Thanks!
    Have you or will you post your source code so we can all learn?

  28. Kev 03 September, 09 @ 9:23 am

    As with Dave, I would absolutely love to take a gander at the source code, if you wouldn’t mind.

    Regardless though, thanks a bunch! I don’t understand why Apple released such a fabulous trackpad that neither came with enough useful features, nor could easily be customized.

  29. Tony L 04 September, 09 @ 11:03 am

    Working after sleep now. Thanks, Clem.

  30. Bren 06 September, 09 @ 7:12 pm

    I like it, however there are a few issues I have with it. Before I upgraded to Snow Leopard it worked perfectly (I think, I only played with it for a little bit). The problems I am seeing is that instead of actually clicking down like you do for right clicks with two finger you are simply tapping without actually clicking. This is a problem because since it is an actual middle mouse click I end up actually clicking it all the time and the scroll icon pops up when I am trying to do three finger swipes and stuff. If you could make it so you actually have to click the button, that would be awesome. Until then, is there any place I can download the control click version?

  31. clem 07 September, 09 @ 10:29 am

    Normally, swipe should not be detected as 3-tap middleclick. You can get the previous version here : http://clement.beffa.org/labs/downloads/MiddleClick0.2.zip

  32. Muhammad Khalid Jadoon 08 September, 09 @ 6:42 am

    Pro / Engineer Wildfire-2 demands “middle-click” in due course of part modeling. I have made myself extremely tired but I failed to do it on my 17″ MacBook Pro’s touch pad. Windows OS via boot camp is otherwise doing well to work with Pro /E.

    I have applied all that is being discussed and shared herein including the default “cmd-click” but in vein. Please help

  33. Rob 12 September, 09 @ 12:05 am

    I thought it was triple tap as in three taps in a succession. You should explain that. :)
    Otherwise, great app, i even donated (a very little bit).
    thank you!!!

  34. JasonQG 13 September, 09 @ 12:04 pm

    Bren: If your problem is with accidentally activating auto scroll in Firefox (this was happening to me), you can type “about:config” into the address bar and disable “general.autoScroll”

  35. Cicciokun 18 September, 09 @ 5:20 pm

    You’re my hero! =) Just update icon please ;)

  36. Cicciokun 18 September, 09 @ 6:11 pm

    PS
    I suggest in this way: http://www.360fun.net/hd/MiddleClick (icons by Cicciokun).zip

  37. Who 18 September, 09 @ 8:09 pm

    Source? I’d love to run it without the little mouse icon :)

  38. Who 18 September, 09 @ 10:52 pm

    Ok, I made a new icon. It’s very simple… (3 fingertips…)

    http://www.mediafire.com/?sharekey=392222e35bd4de5407258ee67c679e4ac5ea6c00cd1998faa2d0568e5b24962e

    You can replace the current mouse.icns with this one by choosing ’show package contents’ on the app, then going to Resources.
    Thanks for the app :)

    Who

  39. Cicciokun 19 September, 09 @ 11:19 am

    Sorry but I prefer my version ;) Only 3 points is too much little…

    In the end I tried to join our two versions; in this archive you can find it and my first: http://www.360fun.net/hd/Cicciokun%20icons%20for%20MiddleClick%20(v1%20%26%20v2).zip

  40. roval 20 September, 09 @ 8:19 am

    This is a great!
    Thanks for the work.
    It would be better to have a option to hide the menubar icon.

  41. Cicciokun 20 September, 09 @ 6:03 pm

    If you just don’t want to see the icon delete “mouse.png” in Resources folder =P

  42. ROVAl 21 September, 09 @ 4:15 am

    I did. But after next boot, an empty slot appeared on the right of my Adium. I tried to rearrange startup order using TinkerTool, but it does not seem to guarantee icon placement.

  43. Cicciokun 22 September, 09 @ 1:11 pm

    @Clem: there is a problem with hibernation! When I use “MidNight” widget in my Mac it can’t hibernate but goes stop! If I close “MiddleClick” all works correctly! If I force to hibernate with “terminal” works correctly (but is very slow to shutdown) when Mac wakes up there are some problems with trackpad (doesn’t work completely or just multitouch feature)…until I kill “MiddleClick”! Then all returns normally!

  44. Who 24 September, 09 @ 5:24 pm

    Yea, I notice that when I am running MiddleClick then my suspend takes around 40 seconds instead of just a couple – which is weird…

  45. Mint 24 September, 09 @ 6:19 pm

    The only problem I notice is that putting the computer to sleep takes up to 20 seconds compared to instantaneously with Middleclick running.

  46. clem 25 September, 09 @ 4:47 pm

    @Cicciokun: I’m using the Deep Sleep widget to go to hibernation. I don’t have huge problem but MiddleClick doesn’t work back from sleep sometime since Snow leopard. I’ll have to investigate.

    Thanks for the icon all. Maybe I’ll change the little mouse with the tree dots.

  47. Cicciokun 25 September, 09 @ 10:41 pm

    @Clem: tnx, I hope in a bugfix! Great for the icons! =) Just mention me please ;)

  48. Mint 28 September, 09 @ 9:31 am

    Could you release the source code for this program on Google Code so people can expand on it?

  49. Cicciokun 28 September, 09 @ 11:26 am

    Yeah, good idea! :)

  50. Cicciokun 29 September, 09 @ 11:29 am

    Another suggest: can you add a “changelog” with various numbers of versions? without it we can’t understand if you update the program without read all comments =\ TNX!!!

  51. JustinP 03 October, 09 @ 5:27 am

    thanks for the wonderful tricks
    however,
    This doesn’t work with mail, for cmd+click mail will open links in the background.

  52. bernard 07 October, 09 @ 4:04 am

    MINT wrote:
    “The only problem I notice is that putting the computer to sleep takes up to 20 seconds compared to instantaneously with Middleclick running.”

    I had the same problem, but now I use Automator to run the following workflow:
    - Quit Application MiddleClick,
    - run shell script to put Mac to sleep (more info here: http://www.majid.info/mylos/weblog/2003/12/05-1.html)
    - Launch Application Middle Click

    works fine for me, sleeps (almost) instantaneously and MiddleClick is available after wake

  53. Mint 08 October, 09 @ 7:19 pm

    I get this in the Console when I attempt to sleep with MiddleClick running:
    kernel PM notification timeout (pid 4452, MiddleClick) which occurs 30 seconds after I attempt to sleep. Is this part of the sleeping problem?

  54. Allen Lee 14 October, 09 @ 8:35 pm

    Hello
    Thanks Clem and Bernard

    I tried this
    use AppleScript Editor

    tell application “MiddleClick”
    quit
    end tell

    tell application “System Events”
    sleep
    end tell

    tell application “MiddleClick”
    activate
    end tell

    save as an app

  55. clem 16 October, 09 @ 3:00 pm

    Souce is now available at http://github.com/cl3m/MiddleClick

    Enjoy!

  56. Cicciokun 17 October, 09 @ 5:43 pm

    GREAT!!! Unfortunately I haven’t time to study Cocoa =(

  57. clem 18 October, 09 @ 1:35 am

    Middleclick was updated and sleep shouldn’t take much time now! It should work when back from deep sleep as well on Snow leopard.

    For ppl using Deep sleep widget, you should update to 1.1! If when you’re entering the username/password, it doesn’t work. You can use this command in the terminal: “cd ~/Library/Widgets/Deep\ Sleep.wdgt/;chmod o+x deepsleep && sudo chown root:wheel deepsleep && sudo chmod u+s deepsleep”

  58. clickhappy 20 October, 09 @ 7:34 pm

    I’m the following error on a 10.5.8 system:
    dyld: unknown required load command 0×80000022
    Trace/BPT trap

  59. clickhappy 20 October, 09 @ 7:35 pm

    Sorry, didn’t mean to submit quite yet: I meant that I was seeing the error above when launching MiddleClick.

  60. Cicciokun 21 October, 09 @ 3:16 pm

    Same error on my 10.5.8 =\

  61. abuzettin.hudaverdi 22 October, 09 @ 6:56 pm

    Works when the source is compiled for the target system.
    I have uploaded the version i am using (for 10.5.8):
    http://drop.io/qfp3uus

    Thanks to CLEM.

  62. Luke 23 October, 09 @ 1:33 am

    First of all: Good job! It works for me. All three-finger clicks work:

    A) Open a new link
    B) Close a tab
    C) Paste in Terminal.

    Here are some suggestions:

    1) Add an option to remove the icon from the notification tray (whatever it’s called, the right-hand part of the menu bar).
    2) Configure it as a third-party system preference (like Flip4Mac). It makes more sense that to maintain it as a .app

    Still, great work! Thank you very much for this!

  63. Padmanabhan 23 October, 09 @ 9:37 pm

    Hi,
    Don’t you think double tap with 2 fingers would be a better option. I just feel 3 fast clicks to be not right. But it’s definitely better than CMD+click. Thanks.

  64. Cicciokun 24 October, 09 @ 12:34 pm

    abuzettin.hudaverdi: GREAT, now works with hibernation!!! =D only one thing, I prefer my icon =P

    Luke: I quote your suggestions :)

    Padmanabhan: two fingers tap it’s assigned to contextual menù!!! three fingers tap it’s perfect!

  65. Cicciokun 24 October, 09 @ 12:38 pm

    too soon to claim victory… =.= after hibernation three finger tap not work…I’ve to reopen MiddleClick =\ (OSX 10.5.8)

  66. charlie 26 October, 09 @ 7:08 am

    this is great but I really wish there was a way to remove the menubar icon.

  67. JustinP 29 October, 09 @ 7:18 pm

    it’s mention above how to remove the icon.

  68. PJ 30 October, 09 @ 9:53 am

    Do you think you will have a go at getting a middle click going on apple’s new magic mouse?

    That would make it a much more appealing product.

  69. clem 30 October, 09 @ 10:41 am

    Accoding to Apple: “Inside Magic Mouse is a chip that tells it exactly what you want to do.”. Thus gesture are detect in hardware and it would be impossible to add MiddleClick to it. I could be wrong. I don’t own a Magic Mouse anyhow.

  70. Azhar 31 October, 09 @ 9:38 am

    Great application, but i miss the “Tap to Click” option. The middle click still active even I uncheck this option.

    Can you make the application respect this option. So, if the option unchecked we need to put 3 finger on touchpad and push button (not tap on the touchpad) to do middle click.

    Thanks… for the application.

  71. koc123 02 November, 09 @ 2:09 pm

    Great tool, but could you include an option to return to default for the middle mouse, because i use a Apple Mouse and trackpad time to time. And now I cant do the cmd+click when I’m on the apple mouse modeling.

    thanks a lot!

  72. NoiZe 02 November, 09 @ 2:58 pm

    I just tested, and this application WORKS with Magic Mouse!
    Only downside is that you have to tap with three fingers, and not click, which seems a little getting used to.

    Maybe something to look in to.
    Anyways thanks a lot for your work!

  73. clem 03 November, 09 @ 12:32 pm

    @NoiZe: Glad it works! So the Magic Mouse is basically an external trackpad if this work with it.

  74. NoiZe 03 November, 09 @ 1:49 pm

    Yes, I think so as well, with the added function of laser tracking. Think of the possibilities! Yet Apple only added Swipe and Zooming.

    Concerning middle clicking; It feels a bit awkward, because three fingers barely fit the small the mouse. It would be best to have: two fingers + click = middle click.

  75. Andrew Gallagher 03 November, 09 @ 5:43 pm

    Great little utility. It would be nice if the link to the 10.5.8 version was in the main article rather than hidden in the comments. Otherwise, thanks! You’ve fixed one of my least favourit little irritants (I use X11 a lot).

  76. Mint 04 November, 09 @ 2:48 am

    2 suggestions.

    1. Make this a prefpane rather than a menu bar utility.

    2. Make an option for 3 finger + button click for middle click rather than tap. Basically the equivalent for right click (2 finger + click) but for middle click.

  77. Dylan 04 November, 09 @ 8:01 am

    This is very cool. It works great with the trackpad but not with my new magic mouse. Any ideas?

    Thanks for writing this and giving it away.

  78. JustinP 04 November, 09 @ 9:53 pm

    that proves that magic mouse is not hardware limited to 2 touch, it is capable of handling 3-4 touch.

  79. kerny 05 November, 09 @ 1:12 am

    Great application, I was looking for a solution to expose all the widows of a same application with a gesture.
    3 fingers just meet my need.

    I just installed the last source version (as I am on 1.5.8 and I need to compile it due to the problem mentioned earlier).
    When I try to drag and drop an item with the track pad, I can’t release it on another object. For example I can’t release a file into a folder.
    For my drag and drop I use the dragging feature of the trackpad (a simple touche next maintain myfinger on the trackpad).
    The only way I found to restore my simple click is to reuse the 3 fingers a click or sometime to reboot.

    Any idea about this bug ?

  80. NoiZe 06 November, 09 @ 12:48 am

    @Dylan
    For me I don’t have multi-touch trackpad, only magic mouse, and it works. It could be that the application only supports one multi-touch device at a time.

  81. Dylan 06 November, 09 @ 8:21 am

    Thank you. I’m looked at the source and I’m pretty sure that’s it. It’s calling

    MTDeviceCreateDefault()

    which appears to instantiate the trackpad. I found some code that shows how to set callbacks for all attached multitouch devices

    http://paste.lisp.org/display/89743

    The problem is I’ve never used any OS X dev tools. I think I have XCode installed somewhere…

  82. Raid 06 November, 09 @ 5:51 pm

    It rocks !!

    MacBook Pro 15.4 not unibody (with trackpad plus a button at its bottom), Snow Leopard 10.6.1

  83. chris 06 November, 09 @ 5:57 pm

    Works a treat with magic mouse, thanks very much!!!

  84. Gregory 07 November, 09 @ 2:40 pm

    Works great! But could you add “three finger swipe down” as a fourth and “three finger swipe up” as a fifth button? Would be gread for Expose.

  85. NoiZe 07 November, 09 @ 7:57 pm

    I know that Allesandro from http://www.usboverdrive.com/ is working specifically on the Magic mouse trying to support all these functions.

  86. JamesP 08 November, 09 @ 1:48 am

    @Dylan

    I think I have figured out how to modify it to work on all Multi-Touch devices. I am about to test it and will post back with results.

  87. Mili 08 November, 09 @ 2:25 am

    I am using 10.5.8 and downloaded the source and compiled it by Xcode. after successful release i lunch the app and the app icon goes above of my screen(beside of clock) but in FF when i hit 3 finger on tap nothing happens,do i do something wrong?

  88. JamesP 08 November, 09 @ 5:20 am

    @Mili

    How did you get yours to compile? Every time I try to compile mine I get an error stating (Cocoa/Cocoa.h file or directory does not exist.) Other than that I have figured out how to modify the code to make it work will all Multi-Touch devices. (I get this error even before I modify the code aka straight from the download to compiling I get an error.)

    The problem with yours is that as is the code defaults to using the Multi-Touch trackpad if you have one and does not see the Magic Mouse. You have to make a modification to the callbacks with in the code.

    If you could help me fix that error I would be more than happy to give you the modifications if they work.

  89. Mili 08 November, 09 @ 6:36 pm

    @JamesP
    I think that is because of lack of cocoa.h header. this file is one of the headers that included in main file. it’s better to reinstall Xcode from your Original mac installation disk or just dl that file and put it on /Developers/SDKs Library

  90. Carlos Eduardo Hernandez 08 November, 09 @ 11:34 pm

    I forked the project, and added multitouch lists, so now your Magic Mouse can work as well. Here is the link:

    http://github.com/carlosh/MiddleClick

  91. Raid 09 November, 09 @ 3:04 am

    @JAMESP
    Really you have a fix for that ? I’ve seen there is a function that uses
    dev = MTDeviceCreateDefault();

    Is that to be modified ?

    Thanks a lot.
    Alessio.

  92. Ben 09 November, 09 @ 4:36 pm

    I got the “three finger tap” to work but kept accidentally activating it. I found the “three finger click” application but cant get it to work. Is it as far along in development as the tap or is there a different problem?

  93. Ben 09 November, 09 @ 5:30 pm

    I took the source code and I think I edited it correctly on my own. How do I compile it into something I can install?

  94. Anderson 09 November, 09 @ 8:29 pm

    Working great with Snow Leopard 10.6.1 and an old Macbook, but doesn’t work with the recents unibody Macbook Pro.

    Anybody has an idea on how to get it working with unibody Macbooks pro?

  95. Richard 09 November, 09 @ 8:29 pm

    This is beautiful! Works as open in new tab in Firefox, paste on a unix terminal in Chicken of the VNC – even turns on scroll mode in Firefox and OpenOffice! And it doesn’t get in the way of the other 3-finger gestures (browser forward/back, plus I have Firefox set to three fingers up/down = switch tabs – following instructions at http://www.crunchgear.com/2009/06/30/be-still-my-heart-multi-touch-tab-switching-in-firefox/). Thanks for making my touchpad browsing experience complete. Awesome job!

  96. Andrew 09 November, 09 @ 8:53 pm

    Im having the same problem as Ben. I rest my fingers on the mouse and keep using the three finger tap on accident. Can you modify the code to be three finger click? Or tell me how? (thanks by the way this makes the mouse so much better)

  97. Alex Galonsky 10 November, 09 @ 7:30 am

    For 3 finger click, use this
    http://github.com/galonsky/MiddleClick/downloads
    It’s my modification of the above app.

  98. another middle-clicker 10 November, 09 @ 9:56 am

    Yeah, it would be more practical with 3-finger click instead of tap. A bit too easy to accidentally click things with tap-to-click enabled.

  99. clem 10 November, 09 @ 11:07 am

    Seems my little app is getting traction. I’ll integrate the different code that ppl posted here and rerelease it soon. Thanks!

  100. another middle-clicker 10 November, 09 @ 11:09 am

    Oh, I just realized that I didn’t actually have to enable tap-to-click for this to work. Could have sworn this wasn’t possible before I updated to 10.6.2, but never mind.

    Btw, there’s also another app called BetterTouchTool that does the same, in case anyone is interested: http://blog.boastr.net/

  101. Jonny 10 November, 09 @ 12:22 pm

    Very cool tool !!

    But I offer a prefane without an icon in the menubar.
    Tools like this must be a prefane !!

    Of course thanks for the great job !!!

    Greetz from Berlin / Germanya

  102. Say 11 November, 09 @ 2:48 am

    Hey,
    BetterTouchTool supports a real three finger CLICK in its current beta. Also swipe up and down :-) I like it more than three finger tap!

  103. Mike 11 November, 09 @ 7:54 pm

    Trying MiddleClick for the first time. Seems to work well with my Magic Mouse as long as I switch it to 3 Finger Click instead of tap. However, every time I restart middle click it defaults to tap instead of my last preference. Is there a way to make it start up with the user’s last selection?

  104. Ben Johnson 12 November, 09 @ 12:29 am

    Hey I downloaded Alex Galonsky’s version but its just the source code. How do I compile it into something I can install?

  105. Alex Galonsky 12 November, 09 @ 3:54 am

    For the above posters ^:
    I compiled my code so you can download it here:
    http://github.com/galonsky/MiddleClick/downloads

    It now uses a true middle click for 3 finger click, and saves the user’s preference of tap or click.

  106. j4rk0r 12 November, 09 @ 4:07 am

    I don´t have install this aplication…
    How can install?

    My mail: j4rk0r_2h@hotmail.com

    Tanks…

  107. Vincent 12 November, 09 @ 9:19 am

    I’ve download the 3-click version from Alex Galonsky, but the 3-click option just not working, only 3-tap works.

    To Ben: there’s a link of dmg file from Alex’s page,
    http://cloud.github.com/downloads/galonsky/MiddleClick/MiddleClick.dmg

  108. Alex Galonsky 12 November, 09 @ 1:55 pm

    Vincent: you did select 3 Finger Click from the menubar icon, right?

  109. NoiZe 12 November, 09 @ 2:41 pm

    @Alex
    Great work, it works amazingly well!
    How about a 2 finger click option?

  110. Ben Johnson 12 November, 09 @ 7:48 pm

    To Vincent: Thanks a lot, I couldnt find it.

  111. Ben Johnson 12 November, 09 @ 8:44 pm

    Under the expose dropdown the only option is second button click since I reformatted my computer. Could this be because I had a 5 button mouse connected as well before the format? Has anyone else run into this?

  112. Max H 13 November, 09 @ 8:36 am

    I have a duplicatable issue with the 3-tap click app. If logged in as User1, then switch to another User-2 without logging out, and do the 3-tap click around in Firefox, then Logout User-2. Log back in as User-1, and the mouse-cursor is unresponsive, until I do ‘Cmd+Alt+Esc’.

    I am running Mac OSX 10.6.2, and using the latest Middle-Click code.

    Any help would be appreciated.

  113. Vincent 13 November, 09 @ 5:48 pm

    Alex, I’ve selected the 3-click option already, no luck even after restart.

  114. Dorv 13 November, 09 @ 9:27 pm

    I can’t get 3-Click to work on my late 2007 Blackbook w/ 10.6.1

  115. Ed Sal 14 November, 09 @ 7:40 pm

    I don’t know if this helps any of you, but I was able to download the version in post 105 by ALEX GALONSKY and got it to work…. However, I had to plug in a regular PC USB mouse with a real “middle click” button. Once I did that, the option showed up for spaces to select Middle Click. I then disconnected the USB mouse and voila, the magic mouse middle click worked (click and touch).

    Now, I have a question for you. I’ve noticed some of you are placing the source code and I would love to tinker with it. However, I cannot find a makefile or anything similar to compile/package the code. Can someone give me a quick explanation on how to do it? I have xcode installed and compile cpp stuff all the time, but I can’t seem to see where that is to happen here. Thanks,

  116. Alex Galonsky 14 November, 09 @ 8:41 pm

    @Ed: Once you download the source, you should be able to double click on the MiddleClick.xcodeproj file, and it will open in Xcode, where you can click Build or Build and Run.

  117. Ed Sal 14 November, 09 @ 8:57 pm

    Thanks Alex…

  118. Stefan 15 November, 09 @ 4:58 pm

    Great Work. Thank you!!

  119. Tony Linde 15 November, 09 @ 7:02 pm

    How does the 3 finger click work? What do I do? Does not seem to do anything on my MacBook Air, only 3 finger tap reproduces the middle click.

  120. James Otto 16 November, 09 @ 1:45 am

    Hi: does any one have a middle finger swipe for one using a Mac Pro? Just got my new Magic Mouse and really like it but miss the middle finger button.

    Thanks

    Jim

  121. Noah 16 November, 09 @ 8:09 pm

    Does this work with regular old leopard?

  122. Steve Gismondi 16 November, 09 @ 9:21 pm

    Well … YES the 3-TAP works GREAT (10.6.2 MacBook Pro)! But I now know why Apple didn’t do it … You see I hold my mouse kinda in a “captured” way (no silliness here) … and what I find is that the 3-TAP is implemented often – unintentionally – may palm sometimes touches the mouse pad and I get a three tap with two fingers (I’m learning this new technique though and I think I actually prefer it). BUT many others might think it a poor design … So I think Apple just dropped it in favor of something they’ll put out later in updates … BUT I wholly agree … the 3-TAP is necessary functionality – AND thanks for your app – works great.

  123. Christoph 17 November, 09 @ 10:44 am

    Great stuff so far. Thanks”
    Would be even cooler, if there was a chance to add a feature to enable simple “tap to click” as well like I can do it on the trackpad?
    thanks

  124. Antman80 18 November, 09 @ 11:55 am

    Can you enable single and double finger taps for the magic mouse too (rather than having to click). That would be sweet as.

    Still, top work and loving it!

  125. dan 19 November, 09 @ 6:56 am

    Worked Great for me. Use a 3 button mouse to set it up and you’ll be just fine. Good work random computer person!

  126. Max Howell 20 November, 09 @ 10:59 am

    Is it 3-taps (tap-tap-tap) or three fingers + one tap? The description doesn’t make it clear.

  127. Snee 20 November, 09 @ 8:48 pm

    Heh. I was tap-tap-tapping for a while until I figured it out. You tap once with three fingers.

  128. tauchris 22 November, 09 @ 10:48 pm

    Using the latest version of this middleclick code– first, *THANK YOU*. It is a sorely needed feature. I do have an issue though– I’m using Vncviewer to connect to a session on a Solaris machine running the Gnome desktop. Middle-button is *imperative* for cutting and pasting across x-applications (between terminal windows and editors, etc.). Oddly, when I am connected to my Solaris session via VNC from my MacBook, the middleclick works, but it always double-pastes. In other words, it looks like middleclick is somehow sending *TWO* middle-clicks. This doesn’t seem to be the case in Safari, though. Am I the only one that has seen this issue?

  129. Roland 24 November, 09 @ 6:57 pm

    Do u have a Leopard build for this? I’m still on Leopard :(

  130. Luciano Cossich Sales 25 November, 09 @ 1:12 am

    pretty cool. takes some getting used to it, but what the heck.

  131. Pedro Oliveira 25 November, 09 @ 5:18 pm

    Clem,

    congratulations!!!
    My sugestion since you are in fact a very open person :)
    Switch the three finger tap to a two finger tap
    that is if haven’t tryed that before, since I hope there won’t be any conflict between the two finger left/right stroke and a two finger tap.
    This is just because I feel the use of three fingers is too much use os the hand for such a small area of the magic mouse, and also because I use all day long Autocad on my windows through VMWare Fusion 3.0.
    Thanks a lot for sharing your precious gift!

  132. James Otto 30 November, 09 @ 6:47 pm

    Clem,
    I use Aperture all the time and noticed certain functions will not work. For example when I tried to use the Clone function it would not work. All the happened was the image moved when I applied the brush. Once I turned off the the “Three Finger Click” every thing worked just fine.

    However, if this is the only problem with Three Finger Click, I am happy as for most of my photo editing every thing works. Some of the special editing Plug-ins for Photoshop CS4 don’t work either but I turn off the Three Finger Click and move on. It seems that if one knows which applications your app will not work with then one just turns it off.

    As far as a Plug-in application for improving the new Magic Mouse the Three Finger Click is needed.

    Thanks for your effort.

    Jim

  133. Faraaz Damji 30 November, 09 @ 10:05 pm

    Made a quick fork to disable the menubar item. I have it set as a login item in order to provide invisible & automatic middle click functionality :)

    If you want to quit it, you have to do it from the activity monitor (or killall MiddleClick)

    http://github.com/frazzydee/MiddleClick

  134. hayato 01 December, 09 @ 4:02 pm

    楽しみです。

  135. TBoch 02 December, 09 @ 12:10 am

    How can i install this app?

  136. WinMac 02 December, 09 @ 10:54 pm

    Thank you very much! Now that the three-finger click option works I am extremely thankful for this app. I myself have a mac partitioned with windows as I need to run programs like Autocad for school. Unfortunately Apple seems to have ignored the entire windows community by not allowing for a middle click button, not to mention the fact that even the scroll does not even work. Would it be possible to make this app. available for windows users? Or does anyone know of any alternatives?? Thanks!

  137. lightbearer 03 December, 09 @ 5:01 am

    It didn’t work for me. I have OS version 10.5.8
    Is it supposed to only work with Snow Leopard?

  138. Adam 04 December, 09 @ 9:26 pm

    Seems to work great in Firefox 3.5 to open a link in a new tab, but I can’t get it to close a link by 3-finger clicking on a tab. Any thoughts?

    Thanks for a great program!!

  139. Alex Galonsky 04 December, 09 @ 11:55 pm

    Adam:
    This version will work for that. It uses a real middle click.
    http://github.com/galonsky/MiddleClick/downloads

  140. boomer 05 December, 09 @ 7:34 pm

    can I 3 finger click and drag? this would be great for maya!

  141. Adam 07 December, 09 @ 7:11 pm

    Thanks, Alex. How do I set the function of the three click to a real middle click? When I do it it opens the widget screen (imac OS X 10.6 with magic mouse)

    Thanks!

  142. Alex Galonsky 07 December, 09 @ 8:35 pm

    Adam: you will have to set your dashboard shortcut to something other than middle click in System Preferences > Expose and Spaces

  143. zarg 11 December, 09 @ 4:21 pm

    Hey !
    Does not work on my macbook pro…
    Here is the result of the command line:

    ./MiddleClick
    dyld: unknown required load command 0×80000022
    Trace/BPT trap

  144. Adam 12 December, 09 @ 12:02 am

    Thanks, Alex. Works great (if a bit too sensitive…)!

  145. zarg 12 December, 09 @ 2:51 am

    I understand that middleclick does not work with mac OS 10.5.8 Is it possible to compile it with the right options ?

    Thank you

  146. Alexandre Lollini 18 December, 09 @ 9:22 pm

    Was working great with 10.6.1 is not working with 10.6.2 and even worse when i try to set up Dashboard to show up with middle click, the menu does not show any middle button. Are there other bluetooth mouse compatible with internal bluetooth and with a standard buttons layout ??? once again i will have to get rid of the apple mouse, and it is a shame for the design!

  147. Jake 29 December, 09 @ 11:15 pm

    I agree with boomer. 3-click/middle-click and drag would be great. Is this possible?

  148. Kári Emil 07 January, 10 @ 5:02 pm

    The only thing I don’t like is the fact that it shows up in my Menu Bar and I can’t get rid of it. Any way to do so?

  149. Netta 10 January, 10 @ 10:28 pm

    Thank you very much!!!

  150. D. 15 January, 10 @ 12:40 am

    I must be just missing it entirely, but the program does nothing at all when I try and launch it.

    I’m sure I’m just missing something, but being tired while trying to do this definitely doesn’t help.

    Can someone explain, simply, what to do after downloading and unzipping the file?

  151. Faraaz Damji 15 January, 10 @ 6:33 pm

    @D: you run the application, and an icon should appear in your menubar.

  152. Guy 15 January, 10 @ 7:16 pm

    Does it work on a iMac G5 running 10.5.8 with a Magic Mouse?

  153. J 26 January, 10 @ 8:05 am

    i have a magic mouse and middleclick was working for me until i updated to version 10.6.2. Any chance an updade will be coming out to make the program compatible?

  154. shy 30 January, 10 @ 12:57 pm

    anyone got this working with archicad? (i.e. move the drawing page around by using middle click with magic mouse)

  155. shy 30 January, 10 @ 12:58 pm

    yeah, same problem with 10.6.2 – seems to have reversed the grab (see the icon instantaneously as I release 3 fingers) so it does not work.

  156. Bee Jay 13 February, 10 @ 11:07 am

    If you want to make this app truly run in background, you don’t need to compile the source by yourself. Instead do these:

    1. Put the app as a Login Item and tick the Hide check.
    2. Open Package Content of the app.
    3. Open “Info.plist” file with any text editor. It’s actually just an XML file.
    4. Paste this line:
    LSUIPresentationMode
    3
    inside the “” tag. This options is to hide icon of the app from Dock and/or App.
    5. Open the Resource folder.
    6. Remove or rename the “mouse.png” file.
    7. (re)Start the app.

    Now, you should get this app truly running on background, no dock icon, no menu bar icon, nothing. As consequences, you need to kill it from Activity Monitor (or Terminal) to shutdown the app.

    HTH. And, thanks the app. :)

  157. hryamzik 13 February, 10 @ 11:14 pm

    First of all, thanks for a grate tool!

    I can agree with those who say that status bar is not the best place for it, but since I’ve bought a magic mouse I’ve covered an issue: 3d click starts working only after quitting and opening tool again. And the easiest workaround would be adding a refresh/relaunch option to status bar icon. Looks really easy to implement.

    And thanks again for a wonderful tool!

  158. Corry 21 February, 10 @ 4:13 pm

    I have middle click and I am using it for the magic mouse, but it’s not opening a new tab when I do it. It opens my dashboard.

    There don’t seem to be settings anywhere for me to have told it to do this, so I’m confused why it’s happening.

  159. Corry 21 February, 10 @ 4:17 pm

    nevermind, I found my answer in the comments that already existed!

    thanks for the help

  160. Brad 22 February, 10 @ 1:06 am

    man this is brilliant – this should be in OSX by default!!!

    you should apply for a job in Apple, they need talented people like you!

    thanks very much!

  161. ricardo 02 March, 10 @ 7:50 pm

    Great app!! I now save a lot of time in chrome/firefox.

    @BRAD I agree, it should be default with mac os.

  162. Amrit Banerjee 09 March, 10 @ 11:17 am

    Is there no way u could add this same feature in windows OS?? i am happy with my magic mouse which i use on my dell laptop. The only problem is that i cant use a middle button function that is much needed while working in programs like cad, sketch-up, max, and revit. could u please have any idea of how to have a work about this? i have searched for it every where. didnt find any solution. dere r no applications or anythin available for magic mouse on windows! jst d unofficial driver.

  163. ClickClack 09 March, 10 @ 10:58 pm

    great !

    what about integrating also a click with 2 fingers as for mouse button(s)4 of the old magic mouse ? so this could be assigned to exposé “show desktop” ?

  164. vallabh 10 March, 10 @ 6:30 pm

    That was cool thanks mate…

Leave Your Own Comment

You can follow any responses to this entry via its RSS comments feed. You can also leave a trackback if the inclination is there.

Copyright © 2005-2010Clément Beffa-Return to the Top ↑