user673592
user673592

Reputation: 2120

Autohotkey: Repeating keypress with key modifier held down

How to rebind a key chord with Ctrl so that it repeats on multiple presses, while Ctrl is held down?

Example: I'm expertimenting with binding Ctrl+Space to Backspace.

^Space::Send {BackSpace}

When I now press Ctrl+Space correctly Backspace is sent and deletes the last character. I want now to keep Ctrl down and delete further characters with multiple Space strokes.

Upvotes: 0

Views: 1083

Answers (1)

woxxom
woxxom

Reputation: 73576

The trick is to use SendInput and release Ctrl:

^Space::sendinput {Ctrl up}{BackSpace}

Upvotes: 3

Related Questions