Thanks for any help!
Code: Select all
SetNumlockState, Off
SetCapsLockState, Off
SetScrollLockState, Off
cWidth := A_ScreenWidth - 202
cHeight := A_ScreenHeight - 35
nWidth := A_ScreenWidth - 202
nHeight := A_ScreenHeight - 80
sWidth := A_ScreenWidth - 202
sHeight := A_ScreenHeight - 125
~*CapsLock::
Sleep, 100
if GetKeyState("CapsLock", "T")
{
Progress, B1 W200 H28 ZH0 FS11 WS900 x%cWidth% y%cHeight% CTFFFFFF CW0000FF, Capslock On
}
else
{
Progress, off
}
return
~*NumLock::
Sleep, 100
if GetKeyState("Numlock", "T")
{
Progress, B1 W200 H28 ZH0 FS11 WS900 x%nWidth% y%nHeight% CT000000 CW00FF00, Numlock On
}
else
{
Progress, off
}
return
~*ScrollLock::
Sleep, 100
if GetKeyState("ScrollLock", "T")
{
Progress, B1 W200 H28 ZH0 FS11 WS900 x%sWidth% y%sHeight% CTFFFFFF CWFF0000, Scroll Lock On
}
else
{
Progress, off
}
return