How to remap ; (semicolon) in AutoHotkey?

Viewed 902

My goal is to remap ; (semicolon) to Control + k. However that doesn't work since ; starts a comment instead of being recognized as a key.

This is my code:

^k::;

I do have a workaround that kind of works but it is causing a mess with the curly braces:

{ ;Semicolon
    ^k::
    send, {; down}
    send, {; up}
    return  
}

The curly braces after "down" and after "up" are not recognized as brackets but as part of the comment.

2 Answers

I've found the answer myself!

^k::
Send, {Text};
return 

Everything that comes after {Text} will be interpreted as text only!

Related