Skip to content

Instantly share code, notes, and snippets.

@iley
Last active December 20, 2015 01:29
Show Gist options
  • Save iley/6049279 to your computer and use it in GitHub Desktop.
Save iley/6049279 to your computer and use it in GitHub Desktop.
My autohotkey script
Capslock::Control ; capslock instead of ctrl
LShift & RShift::ToggleCapslock()
RShift & LShift::ToggleCapslock()
; workaround for Social Club
#IfWinActive, ahk_class #32770
Joy1::Send {Return}
#IfWinActive
return
ToggleCapslock() {
if GetKeyState("CapsLock", "T") = 1 {
SetCapsLockState, off
} else if GetKeyState("CapsLock", "F") = 0 {
SetCapsLockState, on
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment