Page 1 of 1

CapsLock Status Tooltip

Posted: 02 Sep 2015, 05:31
by Kamal Awasthi
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

Re: CapsLock Status Tooltip

Posted: 02 Sep 2015, 07:42
by dsewq1LYJ

Code: Select all

if GetKeyState("CapsLock","T")
{
	SetCapsLockState,Off
	ToolTip,CapsLock is Off
	SetTimer,RemoveToolTip,432
}
else
{
	SetCapsLockState,On
	ToolTip,CapsLock is On
	SetTimer,RemoveToolTip,432
}
return

RemoveToolTip:
SetTimer,RemoveToolTip,Off
ToolTip
return
Not better but clear.

Re: CapsLock Status Tooltip

Posted: 02 Sep 2015, 09:26
by Jon Snow
Thank you.
I Would appreciate if you did the same with Num Lock.

:)

Re: CapsLock Status Tooltip

Posted: 03 Sep 2015, 02:25
by ozzii
Change CapsLock with NumLock and SetCapsLockState with SetNumLockState

Re: CapsLock Status Tooltip

Posted: 03 Sep 2015, 02:52
by jNizM
This may interest you - visual lock indicator (OSD)

Re: CapsLock Status Tooltip

Posted: 04 Sep 2015, 04:50
by Kamal Awasthi
ya! Do same as told above. And I would post one for that too.