Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to toggle between default sound device using hotkey

06 Nov 2013   #1

Windows 7 Ultimate 6.1 x84
How to toggle between default sound device using AutoHotKey

Edit: See second post. Found script for AutoHotKey but not sure how to compile or use it ? Also when ever I plug a USB device in it changes default sound device from Line 1 to SRS.. I usually plug my Smartphone on for charge every day using USB so it gets annoying.

I'm using two audio enhancement plug-ins SRS Audio Sandbox & Breakaway Audio Enhancer. SRS uses Realtek HD Audio Output while breakaway uses SRS Audio Sandbox and when I load my computer for the first time SRS automatically sets SRS Audio Sandbox (WDM) as the default sound device meaning each time I have to open playback devices and change the default sound device back to Line 1 (Breakaway Pipeline) in order for the sound to work.

There seems to be no way to disable SRS from changing the sound device when it starts/loads for the first time so is their a way I can a hotkey shortcut key to simply change default sound device to Line 1 ?

Audio Device: Breakaway
Input > Breakaway Pipeline 1
Output > SRS Audio Sandbox

Audio Device: SRS Audio Sandbox
Input > SAS is the default sound card
Output > Realtek HD Audio Output


My System SpecsSystem Spec
14 Nov 2013   #2

Windows 7 Ultimate 6.1 x84

Windows 7 Tip: How to change the default audio device with a hotkey

Windows Vista and 7 have a new audio subsystem, with lots of neat features. It is not, however, without its quirks. One such quirk is the inability to automatically change the default audio device; you must do it manually.
This means that if you have both headphones and speakers plugged into your computer, whenever you want to pipe all sound through the headphones you must right-click the volume icon, select Playback devices, go to the device you wish to set as default, right-click it, and select Set as Default Device. Sounds like fun, right? Now try doing this 5-6 times a day.
Incredibly enough, I could find no command-line utilities to automate this simple operation. I thought I might build something myself, so I started digging deeper. It turns out Microsoft seems to have done this by design; they wanted to prevent programs from changing the default audio device on users, because this can lead to a very bad experience (imagine a game which suddenly changes the audio to the speakers, when you wanted to listen to it using your earbuds).
I did try a couple of utilities which claimed to do this, but they were really bad. At this point, I did what I do every time the going gets rough: I turned to AutoHotkey. This amazing free automation program has a solution for just about anything, and indeed, AHK user Veabers already created the exact script I wanted in 14 elegant lines of code. This script toggles between two audio devices in about half a second on my system. Just hit Win+Shift+A, and you switch to the other device. Here's the whole thing:

Run, mmsys.cpl
ControlGet, isEnabled, Enabled,,&Set Default
ControlSend,SysListView321,{Down 2}
ControlClick,&Set Default
SoundPlay, *-1

Voila! The only thing I changed was the default key-binding, because the author's default did not work for me.

My System SpecsSystem Spec
14 Nov 2013   #3

Windows 10 Pro

ok people, here is my modded script to toggle between devices. it is an .exe file. this means you have to click on the .exe file to switch the default audio device. HOWEVER, all you have to do is place the .exe file in some folder like documents, than create a shortcut for it. you can than place the shortcut anywhere you like. I put it on my desktop. you can can assign a key stoke to launch it. I did Ctrl+Alt+C to launch it and have it switch it automatically. you also can change the icon of it too.

NOTE: this is an .exe file. so the ONLY way to activate it is to click on it. UNLESS you created a keyboard shortcut.

just so you guys know, I used a similar script like the one above and created it into an .exe file with the program used above. The .exe compared to the actual program is that you do not need to have the program constantly running and boot up with windows for this hotkey to work.

I chose Ctrl+Alt+C because I have Ctrl+Alt+Z and Ctrl+Alt+X used to switch between active power plans. heres the .exe. Enjoy!

Attached Files
File Type: rar Sound Hotkey.rar (326.8 KB, 1752 views)
My System SpecsSystem Spec

17 Nov 2013   #4

Windows 7 Ultimate 6.1 x84


Thanks for the reply, before I saw your post I found utility app called Audio Switcher version: which seems to have solved my issue without needing to toggle default device on startup. It has two options which allows users to set a device as a 'startup device' and as a 'favorite device' which I've set my Line 1 to both of those so when ever I switch on my PC it automatically sets Line 1 as default device. Plus it has hotkey capability which I use when ever connecting/disconnecting usb device due to it changing my default audio device

I will give your script ago as well but it seems Audio Switcher will be better suited as it allows for startup device and favorite device it just a shame both require .exe to be running continuously
My System SpecsSystem Spec
15 Feb 2014   #5

w7 64b

IS there any way to make the EXE bring up the volume menu minimized? So that it doesnt minimize fullscreen games?
But thanks a bunch for that
My System SpecsSystem Spec
01 Jun 2014   #6

windows 7 home Premium x64

... miss post soz
My System SpecsSystem Spec
01 Jun 2014   #7

windows 7 home Premium x64

[QUOTE=Sanantras;2791724]Hi, new to the forum and have been looking for this issue all over the web and have to say that N00berG00ber has fixed my issue in a few masterful keystrokes. THANK YOU
My System SpecsSystem Spec
15 Jun 2014   #8


Thanks N00berG00ber! You are a pimp!!!
My System SpecsSystem Spec
29 Jun 2014   #9

Windows 7 Ultimate x64

Makes switching between my Logitech H800 wireless headset and speakers as easy as Ctrl+Alt+S! Thanks a ton!
My System SpecsSystem Spec
09 Aug 2014   #10

Windows 7 Ultimate x64

I tried this (Noober's program) but all it does is open the Playback devices window then close it, but the same device stays selected instead of switching devices. Any ideas?

I'm using the Audio Switcher program now, so far seems to work pretty well, just wish a hotkey could be set to cycle through the favorites.
My System SpecsSystem Spec

 How to toggle between default sound device using hotkey

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Default Sound Device changes on restart
I'm having a slight problem here, Windows 7 Ultimate. I'm set up with two monitors, the second with HDMI, but I have default sound as the speaker/headphone outputs on my motherboard. For some reason everytime I restart my computer it defaults to HDMI for audio and I need to switch it back, kinda...
Sound & Audio
hotkey to disable an audio device of choice
How would I add a hotkey to toggle on/off an audio device of choice in Windows 7 x64? Here is an image of Windows 7 sound dialog window > playback tab to audio devices. reason being: skype doesn't have a default audio device as an option so I switch between headphone (reciever) to speaker...
General Discussion
default sound device is disable
Good Day to all of you. I am a new here and was trying to search for may problem which could not find the related issue. I tried to change the default playback on my laptop but the option "set default" is disabled and could not be changed. Hence, please help how could have it enable, I have...
Sound & Audio
Mbox 2 + Windows 7 Default Sound Device
Hey everybody, So i was just wondering if anybody here could help me with this problem. I have a Digidesign Mbox 2 which i use as my external sound card for music production, i just upgraded from XP to Windows 7 64 bit and while the external sound card works for Pro-tools and my other audio...
Sound & Audio
How to set default sound playback device
Hi, I have system with multiple Sound playback devices. Most of the time it needs to be on the first entry in the list of devices (HDMI output with me). I'm looking for a way that when I have manually set it to another device in the list, and then shut down the pc that at the next boot it...
Sound & Audio
Changing default Sound Device
Is there any possibility of changing the sound device programatically in Windows 7? Or atleast to make the device as the default sound device during installation? In Vista, I could use SetupPreferredAudioDevice key in INF file to make it as default at the time of installation, but I could see...
Sound & Audio

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:15.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App