My MMB is broken, I'm trying to make caps lock activate the middle mouse button, but I can't figure out how to do it without extra buttons on the mouse (which I don't have). Any ideas on how to do this?


1 Answer 1


The free AutoHotkey V1 is a better tool.

The following example script will map CapsLock to the middle mouse button:


After installing AutoHotKey, put the above text in a .ahk file and double-click it to test. You may stop the script by right-click on the green H icon in the traybar and choosing Exit. To have it run on login, place it in the Startup group at
C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

Useful AutoHotkey documentation:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .