Last active
May 4, 2020 09:50
-
-
Save hubisan/7b3de2780cb5ac88b7d0823badd05d32 to your computer and use it in GitHub Desktop.
Remap Capslock to Ctrl with Autohotkey #ahk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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