Jump to content

Quick-Switch For Playback Device?

Hi, so I'm wondering if there's an application or macro out there that allows me to switch between my headphones and my monitor's speakers.

 

It gets slightly tedious having to go all the way down to the bottom, open up playback devices, and switch when I want to.

 

image.png.3e2bd7ac24add83aebbe4e239f58c626.png

 

Is there a way I can press a button to switch between the two playback devices?

mechanical keyboard switches aficionado & hi-fi audio enthusiast

switch reviews  how i lube mx-style keyboard switches

Link to comment
https://linustechtips.com/topic/1026118-quick-switch-for-playback-device/
Share on other sites

Link to post
Share on other sites

I don't think there's an option for that in Windows but, I found this: Link

 

If you can figure out how to make a macro, it seems like it should do the trick.

 

Quote from there:

Spoiler
Quote

I found a solution! It took a lot of work and I still prefer SoundSwitch but nonetheless this works:

 

Download AutoHotKey (v 1.1) link: http://www.autohotkey.com/

 

Then things get tricky, you have to script it yourself. It took me a while but I finally made my own (with the help of the internet) 

Note: Make sure AutoHotKey is installed in Program Data/Microsoft/Windows/Start Menu/Programs

(Program Data is a hidden file, you will have to enable hidden files to be shown)

 

After that is done go to the desktop and right click

 

Go to new

 

Then you should see Auto HotKey Script as an option, click on that

(if you don't see that you make sure AHK is in Program Data/Microsoft/Windows/Start Menu/Programs)

 

Once you've placed a new script name it what you want (I named it Playback Device Switch)

 

Right click, then click on edit script

 

CTRL+A then backspace will delete all the default script in it

 

Then copy and paste my script as seen below:

 

^!F11::
    Run, mmsys.cpl
    WinWait,Sound
    ControlSend,SysListView321,{Down 2}
    ControlClick,&Set Default
    ControlClick,OK
    return
^!F12::
    Run, mmsys.cpl
    WinWait,Sound
    ControlSend,SysListView321,{Down}
    ControlClick,&Set Default
    ControlClick,OK
    return

 

Note: ^ is CTRL and ! is ALT

 

With this setup CTRL+ALT+F12 will select your first device (Speakers in my case)

CTRL+ALT+F11 will select the 2nd device (Headphones for me)

 

I would disable any devices that you won't be using, that way you will only have 2. If you want more (for other devices) just follow that pattern like this

 

Hotkey ::

   Run,mmsys.cpl

   WinWait,Sound

  ControlSend,SysListView321,{Down 3 (or whatever # you need it to be)}

  ControlClick,&Set Default
  ControlClick,OK
  return

 

Let me know if you have any questions!

3

 

 

I tried the suggested script but, for me, all it does is open mmsys.cpl which, is a good start but, seems like you'd need to configure some button presses.

 

Something like: (Open mmsys.cpl - Press Up - Press tab 3 times - hit enter) would work in my case but, I have no idea how could that be set up.

Make sure to quote or tag people, so they get notified.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×