Skip to content

Instantly share code, notes, and snippets.

@GavukaAlexandr
Forked from userhooke/language_switch.ahk
Created December 31, 2023 14:36
Show Gist options
  • Save GavukaAlexandr/a6a2ed83d6546d2ea3961e58bcc14517 to your computer and use it in GitHub Desktop.
Save GavukaAlexandr/a6a2ed83d6546d2ea3961e58bcc14517 to your computer and use it in GitHub Desktop.
AHK > Switch input language by pressing CapsLock
; Path to startup folder Windows 10 = C:\Users\${user.name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetCapsLockState, AlwaysOff
CapsLock::Send, {Alt Down}{Shift Down}{Shift Up}{Alt Up}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment