ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Capslock

(1/3) > >>

telephonics:
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.

tomos:
Related to this thread -
https://www.donationcoder.com/forum/index.php?topic=38030.msg356005#msg356005

tomos:
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?

skwire:
Which operating system are you using?

eleman:
Attached is a little program I created with some help from the thread Tomos referred to, and Nod5's response there.

The code is below if you need. The exe file in the rar would do the task if you put it in the start-up folder.


--- ---; 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

Navigation

[0] Message Index

[#] Next page

Go to full version