Skip to content

Instantly share code, notes, and snippets.

@hubisan
Last active May 4, 2020 09:50
Show Gist options
  • Save hubisan/7b3de2780cb5ac88b7d0823badd05d32 to your computer and use it in GitHub Desktop.
Save hubisan/7b3de2780cb5ac88b7d0823badd05d32 to your computer and use it in GitHub Desktop.
Remap Capslock to Ctrl with Autohotkey #ahk
; Remap Capslock to Ctrl and then bind Win + Capslock to Capslock.
; URL: https://gist.github.com/hubisan/7b3de2780cb5ac88b7d0823badd05d32
#NoEnv
#SingleInstance force
; Change the icon used in the tray to a blueish arrow.
EnvGet, SystemRootDir, SystemRoot
IcoFile := SystemRootDir . "\system32\imageres.dll"
Menu, Tray, Icon, %IcoFile%, 281
; Remap Ctrl to Capslock
Capslock::Ctrl
; Bind Win + Capslock to Capslock
#Capslock::Capslock
; OLD for some reason I used this.
; <^>!Capslock::Capslock
; Capslock::Control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment