Thursday, February 18, 2010

Mapping control-click to right click in Windows VM on a Mac host

Problem: emulating a right click/control click in a Windows VM on a Mac host with Mac's one-button trackpad.

Quick work around: You can put two fingers on trackpad and click to simulate right click.

Cleaner solution as suggested by Muffin Research Labs is to use AutoHotKey to enable use of control-click to emulate right-click:
  1. Download and install AutoHotKey.
  2. Right click on contrl-left-remap.ahk and save to Windows VM.
  3. Double click on contrl-left-remap.ahk, while it will appear nothing happens you should now be able to control-click on things and Windows should behave like you right-clicked (e.g. you'll get the context menu if you click on a file).
  4. To have this persist past a reboot, copy contrl-left-remap.ahk to C:/Program Files/All Users/Start Menu/Programs/Startup

3 comments:

  1. Thank you!

    I installed Windows XP a new MacBook Air (late 2010 version). Through lots of trial and error and blue screens of death I figured out that Apple's trackpad drivers for Windows are buggy and will likely never be fixed. So I left just the default driver. But, there's no way to right click!

    This was perfect. Thanks for posting.

    ReplyDelete
  2. Majorly useful when using a Wacom tablet - thanks!

    ReplyDelete