topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 8:53 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Capslock  (Read 9844 times)

telephonics

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 22
    • View Profile
    • Donate to Member
Capslock
« on: May 28, 2014, 09:23 AM »
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

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #1 on: May 28, 2014, 09:37 AM »
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #2 on: May 28, 2014, 09:39 AM »
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?
Tom

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #3 on: May 28, 2014, 09:40 AM »
Which operating system are you using?

eleman

  • Spam Killer
  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 413
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #4 on: May 28, 2014, 09:54 AM »
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
« Last Edit: May 28, 2014, 10:26 AM by eleman, Reason: better use of parentheses. »

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #5 on: May 28, 2014, 03:13 PM »
Nice improvement eleman! I didn't think of setting the volume.

eleman

  • Spam Killer
  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 413
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #6 on: May 28, 2014, 03:16 PM »
Yeah, it comes in handy when you use computer as an alarm clock and forget the sound at a low level.

The maximum sound level is 100 btw. You can change the numbers 50 with a higher one up to 100 to make it more audible if you need so.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Capslock
« Reply #7 on: May 28, 2014, 03:37 PM »
I'm going to merge these threads.

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,646
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #8 on: May 28, 2014, 10:33 PM »
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, and it has a very bad habit of deactivating itself for some odd reason ... Which is why - having a habit of missing shifts and hitting capslock myself - I gave up on using it a few years back.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #9 on: May 29, 2014, 05:31 AM »
Actually ToggleKeys has been around since Windows 2000. But unfortunately it makes the same noise for both enable and disable
-Stoic Joker (May 28, 2014, 10:33 PM)

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.
Tom

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,646
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #10 on: May 29, 2014, 06:56 AM »
Actually ToggleKeys has been around since Windows 2000. But unfortunately it makes the same noise for both enable and disable
-Stoic Joker (May 28, 2014, 10:33 PM)

not here - on Windows 7 -
as said, it makes a "high pitch for on, lower pitch for off"

Yeah, I caught that bit, and back to back it is noticeable. Problem is 5-10 minutes apart I got no idea which beep I'm hearing ...(I should probably mention my hearing sucks)... So I just kind of (mentally) tuned out that part of the feature years ago.

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.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #11 on: May 29, 2014, 07:45 AM »
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.
-Stoic Joker (May 29, 2014, 06:56 AM)

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 :-)

pong.gif
Tom

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,646
    • View Profile
    • Donate to Member
Re: Capslock
« Reply #12 on: May 29, 2014, 11:26 AM »
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.
-Stoic Joker (May 29, 2014, 06:56 AM)

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 :-)

Ah, yes ... I remember Pong well. And after sitting here watching the video and playing with the keyboard for the last 5 minutes, I do believe you're right. They do indeed seem to match perfectly.