CapsLockToolTip:
a script to give a tooltip message on each press of CapsLock Button.
Can be usful for the laptops without CapsLock Notifier.
Code: Select all
CapsLock::
GetKeyState, state, CapsLock, T ; D if CapsLock is ON or U otherwise.
if(state=="U")
{
SetCapsLockState, on
ToolTip Caps Lock is On
SetTimer, RemoveToolTip, 1000
}
else
{
SetCapsLockState, Off
ToolTip Caps Lock is Off
SetTimer, RemoveToolTip, 1000
}
return
/*
#Persistent
ToolTip, Timed ToolTip`nThis will be displayed for 5 seconds.
SetTimer, RemoveToolTip, 5000
return
*/
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return