Skip to content

Instantly share code, notes, and snippets.

@mtimkovich
Created February 4, 2024 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtimkovich/f7dfb5e8c3adec0fc23ee607f60eac99 to your computer and use it in GitHub Desktop.
Save mtimkovich/f7dfb5e8c3adec0fc23ee607f60eac99 to your computer and use it in GitHub Desktop.
tYpE lIkE tHiS
Random, upper, 0, 1
ToggleCase(c) {
global upper := !upper
if upper {
StringUpper, c, c
} else {
StringLower, c, c
}
return c
}
Studly() {
c := A_ThisHotKey
if GetKeyState("CapsLock", "T") {
c := ToggleCase(c)
}
SendInput % c
}
; Make hotkeys for all ASCII letters.
alpha := "abcdefghijklmnopqrstuvwxyz"
#UseHook on
Loop, parse, alpha
{
Hotkey % A_LoopField, Studly
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment