Welcome Guest.   Make a donation to an author on the site September 02, 2014, 11:46:00 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Capslock  (Read 1453 times)
telephonics
Supporting Member
**
Posts: 19

View Profile Give some DonationCredits to this forum member
« on: May 28, 2014, 09:23:11 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.
Logged
tomos
Charter Member
***
Posts: 8,481



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: May 28, 2014, 09:37:25 AM »

Related to this thread -
http://www.donationcoder....38030.msg356005#msg356005
Logged

Tom
tomos
Charter Member
***
Posts: 8,481



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: May 28, 2014, 09:39:50 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?
Logged

Tom
skwire
Charter Member
***
Posts: 4,039



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: May 28, 2014, 09:40:36 AM »

Which operating system are you using?
Logged

eleman
Supporting Member
**
Posts: 268

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: May 28, 2014, 09:54:23 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.

[copy or print]
; 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

* announcer.rar (469.9 KB - downloaded 26 times.)
« Last Edit: May 28, 2014, 10:26:42 AM by eleman; Reason: better use of parentheses. » Logged
Nod5
Supporting Member
**
Posts: 734



View Profile Give some DonationCredits to this forum member
« Reply #5 on: May 28, 2014, 03:13:30 PM »

Nice improvement eleman! I didn't think of setting the volume.
Logged
eleman
Supporting Member
**
Posts: 268

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: May 28, 2014, 03:16:50 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.
Logged
mouser
First Author
Administrator
*****
Posts: 33,295



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: May 28, 2014, 03:37:01 PM »

I'm going to merge these threads.
Logged
Stoic Joker
Honorary Member
**
Posts: 5,218



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: May 28, 2014, 10:33:26 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.
Logged
tomos
Charter Member
***
Posts: 8,481



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: May 29, 2014, 05:31:51 AM »

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

Tom
Stoic Joker
Honorary Member
**
Posts: 5,218



View Profile WWW Give some DonationCredits to this forum member
« Reply #10 on: May 29, 2014, 06:56:02 AM »

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"

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.
Logged
tomos
Charter Member
***
Posts: 8,481



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: May 29, 2014, 07:45:42 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.

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

<a href="http://www.youtube.com/watch?v=D-THUXZ1aE4" target="_blank">http://www.youtube.com/watch?v=D-THUXZ1aE4</a>
Logged

Tom
Stoic Joker
Honorary Member
**
Posts: 5,218



View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: May 29, 2014, 11:26:29 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.

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.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.047s | Server load: 0.24 ]