Sebastian Nielsen
Sebastian Nielsen

Reputation: 4219

Listen for {space} input

When the user presses the spacebar on their keyboard, "some text" should be send.

What's the correct way to listen for a {space} input?


This results in an error:

{space}::Send, some text

Upvotes: 0

Views: 216

Answers (1)

jfrmilner
jfrmilner

Reputation: 1778

Try without the curly braces and you'll need to remove the space in your sending text to prevent a loop.

Space::Send, sometext

KeyList can be found here https://www.autohotkey.com/docs/KeyList.htm

Upvotes: 1

Related Questions