Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My keyboard lacks any "multimedia" keys but I really want to have keyboard shortcuts for the global Volume Up, Volume Down, and Mute actions. What's the easiest way to program custom keyboard shortcuts to trigger these missing keys virtually?

I'm not asking about how to work with a particular application. I want to affect the master volume control, regardless of which application has focus.

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Install AutoHotkey using the link called "Installer for AutoHotkey_L" at http://www.autohotkey.com/download/ .

Run AutoHotkey from your Start Menu to create a sample file called "AutoHotkey.ahk" in your "Documents" folder. Open "AutoHotkey.ahk" from your "Documents" folder in a text editor.

You can comment out all the sample commands by putting a ";" at the beginning of each line. Add the following text to the end of the file:

#,::Volume_Down
#.::Volume_Up
#/::Volume_Mute

These commands assign:
Win+, → Volume Down
Win+. → Volume Up
Win+/ → Volume Mute

If you want to use other keys, briefly read "Basic Usage and Syntax" in the help file -- particularly the subsection "Key List".

Create a shortcut in the "Startup" folder of your Start Menu pointing to your "AutoHotkey.ahk" file in your "Documents" folder, and run it. The script will run each time you log in.

If you change the contents of your script and want to recompile it: Log out and log back in; or right-click on the "AutoHotkey.ahk" icon in your system tray and click the Exit command, and then run the shortcut in your Startup folder again.

share|improve this answer
    
+1 for AutoHotkey. –  iglvzx Jan 4 '12 at 0:17
    
Is there any way to accomplish this without AutoHotkey?(Something like registry editor...) As you know, some keyboards with volume control buttons do it without any 3rd party application. –  sky Jun 14 at 8:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.