Switch Windows 7 Audio Device with AutoHotkey (Second Device)


/ Published in: AutoIt
Save to your folder(s)

Be sure to change all Audio references to the corresponding window title in your language. This script switch the default audio device in Windows 7 to the second audio device, in my case the Headphones. You can add one or more Send, {Down} statements, 1 more for your third device, two more for your fourth device, always followed by a reasonable sleep as the script shows. Hope you find it useful. This script can be used in conjunction with Jumplist Extender application, http://jumplist.gsdn-media.com/site/Main_Page, to easily switch the device from the Windows 7 taskbar as it accepts internally the execution of AutoHotkey scripts. You can easily create a script to revert back to the first audio device, you have to remove a Send, {Down} statement and increase the sleep time a bit more if don\'t work (I don\'t know why). You need AutoHotkey (see the url above) installed to run this script, simply create a file with the extension .ahk and paste the code. AutoHotkey will recognize the registered extension and will run the script. Thanks to procyon http://www.autohotkey.com/forum/viewtopic.php?t=2436 at AutoHotkey Community where the same script for XP script resides.

URL: http://www.autohotkey.com/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.