Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to assign a key on my keyboard to be equivalent to a left mouse click.

Ideally it needs to act such that holding the key down is also equivalent to holding the left mouse button down.

How can I do this?

share|improve this question
I'm almost positive you need to buy a new mouse. =P – NReilingh Jun 10 '11 at 21:56
OS X has limited options for simulating mouse clicks (applescript falls short in this department), but this might help you with the mouse click part: --- After you edit it to your needs and compile, you'll need to bind that app to a hotkey in order to have a key press activate it, you can try something like Spark for that: -- not sure about the holding the key down though – MaQleod Jun 10 '11 at 22:23
In your Stack Overflow duplicate, you said you could also use a programmatic solution using AppleScript or Cocoa. Why not here? – slhck Jun 10 '11 at 22:24
slhck - I didn't mention programmatic solution here because I was treating SuperUser as a user focused site. To be clear though - I am happy with a programmatic solution! – zadam Jun 10 '11 at 22:49

You should be able to achieve this using BetterTouchTool. It's an app you'd have to install but it's free an has lots of other useful features. You can also choose to limit this functionality to a single application or use it globally.

share|improve this answer
Yes, it's possible. In "Preferences" - "Keyboard" - "Add new shortcut", and in actions, select "leftclick". – slhck Jun 10 '11 at 22:56
slhck - I couldn't get this to work – zadam Jun 18 '11 at 22:00

You can use OS X's Mouse Keys feature to use the keyboard to click the mouse. (It's an accessibility feature.) You can enable a keyboard shortcut to turn it on and off if you don't want to use the feature all the time.

With Mouse Keys, just use the number 5 (or the equivalent letter key I) to click. Pressing 0 or M will work for holding down the mouse button, and period will release.

share|improve this answer
up vote 0 down vote accepted

None of the suggestions met my needs so I wrote an app to do it. It is available on the Mac App Store if anyone is interested: Click and Drag

share|improve this answer
If you have a broken trackpad and all you want is to be able to click & drag without clicking, try the "three finger drag" option from Preferences -> Trackpad in OSX. – micho Jan 8 '15 at 10:38
"The item you've requested is not currently available in the U.S. store." – Urda Mar 6 '15 at 19:43
Not available in Portuguese store as well. Seems like the app no longer exists. This shouldn’t be the accepted answer anymore. – user137369 Nov 2 '15 at 11:51
The link is dead. There's no such application anymore in AppStore – Farside Apr 13 at 16:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.