*~CapsLock:: GetKeyState, CapsState, CapsLock, T If CapsState = D { SoundPlay, C:\Samples\Sounds\High Beep.wav ; Assign your own sound SetTimer, CapsBeep, 5000 } Else { SetTimer, CapsBeep, Off SoundPlay, C:\Samples\Sounds\Low Beep.wav ; Assign your own sound } Return CapsBeep: SoundPlay, C:\Samples\Sounds\High Beep.wav ; Assign your own sound Return
Again simple but useful - CapsLock State Sound Indicator
Started by
Diamond
, Jul 23 2006 01:19 PM
7 replies to this topic
I'm visually impaired so this is useful for me. Posting it just in case anyone else can make use of it.
#1
-
Posted 23 July 2006 - 01:19 PM
Thanks for the script
If you don't mind having this functionality associated with CAPS LOCK, NUM LOCK and SCROLL LOCK and have defined sound, you can use this operating system functionality:
Go to Control panel, Accessibility options, tab: Keyboard and check: Use ToggleKeys.
You might need to install the accessibility options in the add/remove application, Windows components.
If you don't mind having this functionality associated with CAPS LOCK, NUM LOCK and SCROLL LOCK and have defined sound, you can use this operating system functionality:
Go to Control panel, Accessibility options, tab: Keyboard and check: Use ToggleKeys.
You might need to install the accessibility options in the add/remove application, Windows components.
#2
-
Posted 04 September 2006 - 03:29 AM
Questions, comments and suggestions are always welcome.
Johny :idea:
Johny :idea:
Yes, unfortunately the accessibility option for this in XP uses the PC speaker. I've seen some newer machines that don't even have a PC speaker. Also, it only plays the sound when the key is first toggled on/off and the notification isn't even very loud so you might miss it if you weren't paying attention. I didn't care quite as much about the other toggle keys, but when you're visually impaired it's extremely annoying to have just finished typing an entire paragraph or two, only to discover that CapsLock has been on the whole time. This at least gives me an indication every 5 seconds and it could easily be modified to work with the other toggle keys as well. I have mine set up to turn off CapsLock automatically after 3 minutes.
#3
-
Posted 04 September 2006 - 04:06 AM
Nice, and simple!
If you assign some functions to the CapsLock key, and set it with a key combination (like Ctrl-CapsLock), or change its status within another script, the following variant might be safer.
If you assign some functions to the CapsLock key, and set it with a key combination (like Ctrl-CapsLock), or change its status within another script, the following variant might be safer.
#Persistent SetTimer Caps, 1000 Caps: If GetKeyState("CapsLock","T") SoundPlay, C:\WINDOWS\MEDIA\Windows XP Pop-up Blocked.wav ReturnIt checks the CapsLock state in every second, and if it is on, it ticks.
#4
-
Posted 04 September 2006 - 06:32 AM
I thought of doing it that way and if I ever assign any other functions to the CapsLock key I'll definitely change it. The only reason I did it this way was to avoid having a timer running in the background that's only occasionally needed. Probably not a big processor killer, but this stuff adds up after a while.
#5
-
Posted 04 September 2006 - 06:48 AM
You are absolutely right. Many of us have a few timers constantly running, like updating an analog clock, putting state information of the Lock keys over the start button, timers, etc. One of them can be enhanced with the test and sound playing for the CapsLock state.
In case accident does happen, a simple script can replace a selected piece of text with a version which could have been typed with the opposite CapsLock state.
In case accident does happen, a simple script can replace a selected piece of text with a version which could have been typed with the opposite CapsLock state.
#6
-
Posted 04 September 2006 - 07:29 PM
Computers must support the PC speaker if they want to be "100% IBM AT compatible". If they do not have a PC speaker, their embedded sound card device must capture these.
However, I thing there is nothing defined for its minimum volume. Also, as mentionned, there is no functionnalities in Microsoft tools that repeat the caps-lock status sound after a while. If these options are desired, the proposed solution here is ideal.
However, I thing there is nothing defined for its minimum volume. Also, as mentionned, there is no functionnalities in Microsoft tools that repeat the caps-lock status sound after a while. If these options are desired, the proposed solution here is ideal.
#7
-
Posted 24 September 2006 - 02:31 AM
Questions, comments and suggestions are always welcome.
Johny :idea:
Johny :idea:
Added the * wildcard because sometimes CapsLock might be accidentally activated while holding down a modifier key. This insures that the script triggers even in those rare situations.
#8
-
Posted 18 April 2007 - 10:22 PM