If you’re stuck with a keyboard without multimedia keys, it can be incredibly difficult to quickly mute your speakers. Here is a simple AutoHotKey script that maps the “Caps Lock” key as a quick mute keyboard shortcut.
First install AutoHotKey if you haven’t done so already. Then type this command in a file mute.ahk, and double click to execute.
CapsLock:: SoundSet, +1, , mute
Pressing the “Caps Lock” key mutes the speakers, pressing it again restores sound. Here is an executable if you don’t have AutoHotKey installed.
Find this article at: http://www.labnol.org/software/mute-your-speakers-with-the-caps-lock-key/5943/
web: http://www.labnol.org/ email: amit@labnol.org


Reader Comments
Nowadays, there are not many companies shipping keyboard without multimedia keys. But, anyways, it is a good hack. How can it be extended to other functions?
Written by Siddharth Agarwal on 12.09.08
Excellent. Unfortunately, those of us who work in an office with MSWord documents all day long still need the Caps Lock, but most of us don’t have a multimedia keyboard. What I personally could really use is an executable that would mute using the menu key or the right-hand Alt, Ctrl, Windows, or Menu keys. Any volunteers?
Written by Steve Edwards on 12.10.08
@ Steve - I use Global Audio Control (http://www.snapfiles.com/get/globalaudio.html). Its discontinued and old still works great.
Written by Dwight K Shrute on 12.10.08
Amit - Awesome program! This is really handy. Any chance of incorporating a disable Insert key?
Written by Gurpreet on 12.10.08
If you replace ‘CapsLock” with ScrollLock’, you have the same effect but with a key less used.
Written by ferdy182 on 12.11.08
@Steve
AHK is a very powerful program.
In the above example if you replace CapsLock with ^CapsLock then ctrl-caps lock will mute and won’t effect the ordinary operation of capslock.
@Gurpreet
Not sure but adding this to your AHK script may work:
InsertKey::
Creating new windows key based hot keys is one of my favorite things to do with AHK.
Written by area41 on 12.12.08
This line of script did not work for me, I’m running Vista 64-bit (not sure if that is the difference), but the following did:
CapsLock::Send {Volume_Mute}
Written by josh on 02.13.09