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

Are there Mac Terminal commands to assign keystrokes to mouse clicks?

The aim here is simple. I have a generic three-button mouse for which there's no customizing driver available, and I want it to do this:

- rightclick = command+leftclick (replacing control+leftclick)
- wheelclickdown = close-window (cmd-w) 

A mouse on another Mac I use does this with its driver, and I could get that one for this machine, but I've found a mouse that feels just right in my hand and I'd like to use it -- if I can create those key assignments.

Or is there some other way to do this? There are third-party generic drivers that do it, but for minimalist purposes I would like to do it with the Mac itself. This seems such a simple basic thing.

share|improve this question
    
What does this have to do with Terminal? You'd reject any solution that requires you to open a text editor? – Daniel Beck Jun 1 '11 at 23:24
    
I'm surely open to any method to do this. Terminal just seemed one likely possibility. Do you know a way to do it? Thank you. – R Smith Jun 1 '11 at 23:35

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.