Skip to content

Commit

Permalink
Fiddle around with CapsLockToggle
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jul 13, 2019
1 parent 7ac15b7 commit 4b08e58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CapsLockToggle.ahk
Expand Up @@ -40,17 +40,19 @@ ToggleCapsLockState()
{
global keepCapsLockOff
keepCapsLockOff := !keepCapsLockOff
Sleep, 100
; Sleep, 100

if (keepCapsLockOff)
{
Sleep, 300 ; one has to sleep JUST BEFORE toggling caps
SetCapsLockState Off
Sleep, 100 ; one has to sleep JUST BEFORE toggling caps
Tippy("CapsLock is off")
SetCapsLockState Off
}
else
{
Sleep, 300 ; one has to sleep JUST BEFORE toggling caps
SetCapsLockState On
Sleep, 100 ; one has to sleep JUST BEFORE toggling caps
Tippy("CapsLock is on")
SetCapsLockState On
}
Expand Down

0 comments on commit 4b08e58

Please sign in to comment.