Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C# (http://www.programmingforums.org/forum16.html)
-   -   Sound device swap over application (http://www.programmingforums.org/showthread.php?t=11738)

dragon2309 Oct 29th, 2006 1:47 PM

Sound device swap over application
 
Hi all,

I just got me a new USB headset, its quite good and everything, got a mic, its ok, just one thing, i want ti connected all the time, because its just convinient. The only thing is that my PC will only output to one of the two sound devices (the headset or my soundcard/speakers), this can only be changed by going in to control panel - sounds/audio devices and changing the default playback device to the desired one...

This is ok, its a total of about 5 clicks to get there, but it would be nice if i had some little app or shortcut to be able to swap between the two.... Im sure it could be done with a little bit of programming, but my C# knowledge goes about as far as....

printf("I suck");

Any ideas?

cheers, dragon

DaWei Oct 29th, 2006 2:23 PM

Look into WSH (Windows Scripting Host). You can use VBScript (or Perlscript) to automate what those clicks do.

Dameon Oct 29th, 2006 3:01 PM

Quote:

Originally Posted by dragon2309 (Post 117843)
but my C# knowledge goes about as far as....
printf("I suck");

Which isn't C# ;)

coldDeath Oct 29th, 2006 5:12 PM

Theres a simple scriping language called AutoIt. You can get it to "push keys" and do mouse clicks and other cool stuff. It should only be about 5-10 lines in AutoIt.


All times are GMT -5. The time now is 1:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC