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

Does anyone know a way to configure Windows 7 or use third party software to do this? I would like to click my middle mouse button and have it tell Windows to left click and hold until I click the middle mouse button again. A keyboard key would be fine as well.

Some games and apps have me holding down the left mouse button for a long time and I would like to reduce the stress on my mouse hand. Also, I would like to do a similar thing but have it repeatedly click the left mouse button automatically if possible.

If none of that is possible, how about temporalily setting a keyboard key to achieve a left mouse button emulation?

share|improve this question
this may be built into Windows-… -I can't check on this machine (so haven't made this an answer) but I'm sure the option to click on click off existed for users with difficulties using mice – BrianA Dec 8 '11 at 9:29

6 Answers 6

up vote 8 down vote accepted

you can create all your custom keyboard shortcuts using autohotkey. Autohotkey is a free open source software for macro and key binds.

share|improve this answer
It would have been better to provide an actual script to do it. – Synetech Oct 1 '12 at 3:29

I've been using this one & setting a key for left click. Set it to hold the key & click from 0-9999 clicks/second

share|improve this answer

Try a combination of:

a) mouse click emulating software (e.g. )


b) macro editor (e.g. ).

share|improve this answer

Looking for the right click keyboard command? It’s not often you’re left without a mouse, a trackball, or a touch pad, but there are those rare occasions when nothing works! Oddly, my touch pad died the other day, I didn’t have a mouse, and my computer didn’t have a secondary mouse tracking option!

It was quite interesting to sit for hours trying to figure out what combo of keys does what! Anyway, I now have learned several useful keyboard shortcuts so that I can use my computer without the need for a mouse device! So how can you control the computer without your mouse? Well firstly, the easiest thing to do is use the ALT key and the ATL + TAB key combo. ALT + TAB lets you switch between programs and just pressing the ALT key on your keyboard focuses onto the menu options, such as File, Edit, etc.

You can then use the arrow keys to navigate the menus for a program and press Enter to “left click” on an item.

But what if you need to right-click in a Word document or right-click on a file to see it’s properties? The right-click keyboard shortcut is to hold down SHIFT and then press F10. That’s one of my favorite keyboard shortcuts because it comes in VERY handy and sometimes it’s actually easier to use the keyboard than the mouse.

There are some other handy Windows XP keyboard shortcuts that you should know in case you are stuck in a bad situation:

CTRL+ESC: Opens the Start menu (then use ARROW keys to select an item)

ALT+DOWN ARROW: Opens a drop-down list box

ALT+F4: Closes the current program window

ALT+ENTER: Open the properties for the selected object

There are of course many other shortcuts that are equally useful and I have written several posts on this earlier:

share|improve this answer
Ummm that was a pretty helpful comment, but unrelated to the question, which specifically asks how to do a left click and hold or repeat click. The question was already answered, it can be achieved through the program AutoHotKey. – miahelf Oct 1 '12 at 7:14
@miahelf While the answer may have been unrelated, you really shouldn't discourage folks from providing new answers (that are related, of course) because old answers could very well become obsolete. And some answers aren't as ideal to some as they are to others. This is why questions are always left open, and not archived, all across the StackExchange network. – b1nary.atr0phy Mar 30 at 10:02
@b1nary.atr0phy Did you read the answer or are you a bot? The answer is strictly 100% unrelated to the question, what value is there in that? – miahelf Mar 30 at 13:18

Here's the autohotkey script that will bind a keyboard shortcut (CTRL + g) to a mouse click.


Save this in notepad with the file extension .ahk then compile with autohotkeys. To compile autohotkeys scripts you will need to download it here:

Also You can replace the key g with any letter to change the trigger key. To change from CTRL to ALT replace the ^ with !. For a complete list of symbols defining hotkeys see this documentation...

share|improve this answer

Autohotkey script for mapping a key to left mouse button (and hold while keeping key pressed), if key combined with SHIFT, the right mouse button will be clicked instead of the left. I used the `

`::  ;backtick (tilde) key
click Down left ;click left mousebutton and hold
keywait,`` ; wait until key is released. Double backtick because backtick needs to be escaped (with a backtick)
click Up left ; release left mousebutton

^`::  ;backtick (tilde) key
click Down right ;click left mousebutton and hold
keywait, ^` ; wait until key is released. 
click Up right ; release left mousebutton
share|improve this answer

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.