Skip to content

Instantly share code, notes, and snippets.

@JarvisPrestidge
Created May 10, 2018 14:38
Show Gist options
  • Save JarvisPrestidge/e2e497ae82eda5579d7c20c786244c7f to your computer and use it in GitHub Desktop.
Save JarvisPrestidge/e2e497ae82eda5579d7c20c786244c7f to your computer and use it in GitHub Desktop.
ahk caps lock timer
#Persistent
#InstallKeybdHook
#SingleInstance force
; Author: Jarvis Prestidge
; Description:
SetTimer, FortniteChecker, 500
return
global on_fortnite := false
FortniteChecker:
IfWinNotActive Fortnite {
; Desktop
SetCapsLockState AlwaysOff
on_fortnite := false
return
}
; Fortnite
if (!on_fortnite) {
SetCapsLockState On
on_fortnite := true
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment