Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

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

Is it possible to simulate a double left click by using the middle mouse button down event?

The reason I'm looking to do this is because it would be a lot easier to single middle button click on a unit to select all units of that type in the visible screen instead of double clicking a unit. I know this seems minor, but I believe it would help me on my micro.

If it's necessary, I have knowledge in several programming languages, but am unsure if it's even necessary to program something.

share|improve this question
Control+Click is easier and does the same thing. Alternatively, you can easily set a macro inside Windows itself. – Decency Feb 18 '13 at 18:45
up vote 0 down vote accepted

Decency provides an excellent recommendation for selecting multiple units without external resources. If you insist on achieving exactly what you ask for, you can use AutoHotkey. A sample script which accomplishes this could be:

#NoEnv                 ; forwards compatibility
#IfWinActive Starcraft ; only remap for SC
MButton::Click 2       ; remap middle-click to double-click
#IfWinActive           ; reset scope

Simply save the above text as a .ahk file and open it to enable the script. From then on, whenever you middle-click in Starcraft / Starcraft 2, it'll double-click instead.

Regarding the legality of macros, this post on the forums implies that macros that are not used for automation are allowed.

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.