Thanks to all who replied. For me,being almost blind, i need a system that announces whether caps are on or off and numerals are on or off. Toggle based solutions will not help me witjhou having this audio capability.




; announces capslock and numlock state when pressed.
~Capslock::
{
SoundGet, MasterBeforeMaximize, Master ; set volume to an audible level, in case it was too low
SoundGet, WaveBeforeMaximize, Wave ; Don't be rude and get the original volume levels before changing them
SoundSet, 50, Master
SoundSet, 50, Wave
If GetKeyState("CapsLock", "T") = 1
{
ComObjCreate("SAPI.SpVoice").Speak("caps on")
Return
}
Else
{
ComObjCreate("SAPI.SpVoice").Speak("caps off")
Return
}
SoundSet, %MasterBeforeMaximize%, Master ; Restore original volume levels
SoundSet, %WaveBeforeMaximize%, Wave
}
Return
~Numlock::
{
SoundGet, MasterBeforeMaximize, Master ; set volume to an audible level, in case it was too low
SoundGet, WaveBeforeMaximize, Wave ; Don't be rude and get the original volume levels before changing them
SoundSet, 50, Master
SoundSet, 50, Wave
If GetKeyState("NumLock", "T") = 1
{
ComObjCreate("SAPI.SpVoice").Speak("num on")
Return
}
Else
{
ComObjCreate("SAPI.SpVoice").Speak("num off")
Return
}
SoundSet, %MasterBeforeMaximize%, Master ; Restore original volume levels
SoundSet, %WaveBeforeMaximize%, Wave
}
Return

Telephonics,
on Windows 7, you can set the Capslock and Numberlock to make a sound when changed (high pitch for on, lower pitch for off).
Could that be a solution?
Or could disabling both completely be a solution?
Actually ToggleKeys has been around since Windows 2000. But unfortunately it makes the same noise for both enable and disable
Actually ToggleKeys has been around since Windows 2000. But unfortunately it makes the same noise for both enable and disable
not here - on Windows 7 -
as said, it makes a "high pitch for on, lower pitch for off"
Obviously the deactivating itself would not be ideal... possibly for that reason, it does have a setting: press numlock key for 5 seconds to activate.
Obviously the deactivating itself would not be ideal... possibly for that reason, it does have a setting: press numlock key for 5 seconds to activate.
I never did figure out what was deactivating it or why, it was just constantly, suddenly not there. But hay WTH, I just enabled it now to see what'll happen this time. Perhaps it will stay on.
Obviously the deactivating itself would not be ideal... possibly for that reason, it does have a setting: press numlock key for 5 seconds to activate.
I never did figure out what was deactivating it or why, it was just constantly, suddenly not there. But hay WTH, I just enabled it now to see what'll happen this time. Perhaps it will stay on.
I was trying to remember all along what it reminds me of - do you remember that real basic tennis video game - the sounds were almost the same for hit and miss :-)
Original address: https://www.donationcoder.com/forum/index.php?topic=38036.0