Friday, November 6, 2009

Turn CapsLock into Mute Toggle Key

Do you know that out of  many useless keys on the keyboard, CapsLock holds the first position for being the most useless one. I have never used it or seen anybody use it. Most of time we try to hold our sweet Shift key. 

To make it really useful we'll have to use an application called AutoHotKey [AHK]. AHK basically remaps the keys and associate different kinds of action with the keyboard or mouse keys. We'll use this software to make CapsLock useful, believe me, very useful. 

Lets stat by installing AHK, setup is pretty straight forward so you can really do it on your own.

Now this is the time to take a very deep breath.

Start Notepad or any other text editor of your choice. I usually prefer Notepad2 or Sublime. [B'cause they look kinda cool ^_^]

write the following in your file:


CapsLock::

send, {Volume_Mute}

return


Now let me explain what does that script ACTUALLY  mean.

"CapsLock::" is the name of the key to which we are assigning the Toggle Mute Action. 

"send" instructs the AHK to send a keystroke or in plain simple English it asks the AHK to press the button.

"{Volume_Mute}" is a key (Present on Multimedia Keyboards) to be pressed. In our case this key may or may not be present on our Keyboard. If it's not AHK will simply simulate it and will assign its action to the CapsLock key hence giving you an easier approach to mute the babbling.

"return" asks the AHK to return from the subroutine. 

Now, Save the file with  the name of your choice but don't forget to put the extension of " .ahk ".

With AHK installed run the script you just created and viola now you can toggle the mute on or off just by pressing that old rusty CapsLock key.

1 comment: