gignu
gignu

Reputation: 2485

How to remap ; (semicolon) in AutoHotkey?

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.

Upvotes: 2

Views: 2446

Answers (2)

gignu
gignu

Reputation: 2485

I've found the answer myself!

^k::
Send, {Text};
return 

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

Upvotes: 5

IoCalisto
IoCalisto

Reputation: 53

try using

`;::?

(? being used as wildcard)

did a quick google search and found this: https://autohotkey.com/board/topic/33122-how-to-remap-semicolon-key/ Not sure if this is what you are looking for though.

Upvotes: 1

Related Questions