Reputation: 542
I have the following snippet of code in my ahk script, which should send NumpadMult when semicolon is pressed, however it just sends a semicolon:
;::
Send, {NumpadMult}
return
I have similar code for period to NumpadDot, and all other Numpad keys, which work fine. Below is a picture of semicolon and period being pressed, and the resultant key history.
What could be the issue? Maybe the compiler is getting confused since semicolon is also used for comments?
Thanks in advance
Upvotes: 1
Views: 653
Reputation: 542
Fixed!
You need to add a ` before the semicolon. I'm assuming this escapes the comment function.
The code is now:
`;::
Send, {NumpadMult}
return
Upvotes: 1