This AutoHotkey (AHK) script modifies the behavior of Caps Lock to toggle a Swedish input mode on an English keyboard layout. When Caps Lock is ON, specific keys are remapped to produce Swedish characters (å, ä, ö) and other custom remaps, while regular letters function normally. The Caps Lock LED still works to indicate when the mode is active.
- Press Caps Lock to toggle Swedish input mode ON/OFF.
- When Caps Lock is ON, the following remaps apply:
| Key | Output | Shift + Key | Output |
|---|---|---|---|
; |
ö |
: |
Ö |
' |
ä |
" |
Ä |
[ |
å |
{ |
Å |
] |
' |
} |
" |
- All other alphabet keys (
A-Z) remain unchanged. - The Caps Lock LED still functions, indicating when Swedish mode is active.
-
Install AutoHotkey v2
- Download from: https://www.autohotkey.com/
- Install AutoHotkey v2.x (not v1.x).
-
Save the script
- Create a new file named
SweLock.ahk. - Copy and paste the script into the file.
- Create a new file named
-
Run the script
- Double-click
SweLock.ahkto activate it.
- Double-click
-
Run at startup (optional)
- Press
Win + R, typeshell:startup, and pressEnter. - Copy
SweLock.ahkinto this folder. - The script will now start automatically when you log in.
- Press