Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to map caps lock to ESC in AutoHotkey?

Tags:

autohotkey

How to set up AutoHotkey so that when I press the Caps Lock, it will instead send the ESC key to the computer?

like image 324
Anonsage Avatar asked Jul 25 '16 01:07

Anonsage


2 Answers

Mapping Caps Lock key to ESC key can be done as:

Capslock::Esc

Using this format, you can easily map Caps Lock to any key, for example, the enter key:

Capslock::Enter
like image 130
Anonsage Avatar answered Sep 17 '22 11:09

Anonsage


If you want to also map Esc to Capslock at the same time, do this:

$Capslock::Esc
$Esc::Capslock
like image 21
Al-Baraa El-Hag Avatar answered Sep 20 '22 11:09

Al-Baraa El-Hag