Mute your Speakers with the Caps Lock Key

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?

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?

@ Steve - I use Global Audio Control (http://www.snapfiles.com/get/globalaudio.html). Its discontinued and old still works great.

Amit - Awesome program! This is really handy. Any chance of incorporating a disable Insert key?

If you replace ‘CapsLock” with ScrollLock’, you have the same effect but with a key less used.

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

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}

Google Custom Search