Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to map the single press of a key to a double press of a different one? E.g. I press the Q button (tap it, rather than hold it down), and it maps to pressing the 1 key twice in quick succession? I'm using 64-bit Windows 7.

(Background: I am playing a new game, Batman Arkham Origins, that has very poor keyboard and mouse support compared to previous games in the series. I think I'll be able to get around its lack of support for extra mouse buttons and inability to use shift as a modifier key using this past superuser question. But that still leaves the problem that actions that were previously two different keyboard mappings (using a gadget normally and "quickfire") are now mapped to the same key that you press either once or twice.)

Many thanks in advance.

share|improve this question
    
I promise I searched before posting! But it looks like AutoHotkey will do the trick here, assuming that it works with the game. Sorry about the noise. –  Jim Oldfield Oct 26 '13 at 12:33
add comment

2 Answers 2

Download Macro Recorder. With it, record a double click macro (make sure delay is set to either zero or a minuscule time), and assign it to the letter Q.

share|improve this answer
    
Thanks for the suggestion. But as I said in the comment on my original post, I already realised that AutoHotkey could do this. The program you've posted looks interesting, but not as good as AutoHotkey and also not free. I've posted an answer now to help others with this. –  Jim Oldfield Nov 6 '13 at 19:23
add comment
up vote 0 down vote accepted

For the record, to do this in AutoHotkey you need a mapping like this in your script:

q::Send 11

This will simulate two presses of the 1 key in immediate succession. It will only work if the Q key is pressed with no modifiers, like shift or control. If you want it to work with modifiers held down, put an asterisk at the front like this:

*q::Send 11

Anyone interested in the same specific problem as me, namely making the controls to Arkham Origins bearable, can find the full script I made in this forum post.

share|improve this answer
add comment

Your Answer

 
discard

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.