Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 29th, 2006, 1:47 PM   #1
dragon2309
Newbie
 
Join Date: Oct 2006
Posts: 1
Rep Power: 0 dragon2309 is on a distinguished road
Question 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
dragon2309 is offline   Reply With Quote
Old Oct 29th, 2006, 2:23 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Look into WSH (Windows Scripting Host). You can use VBScript (or Perlscript) to automate what those clicks do.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 29th, 2006, 3:01 PM   #3
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Quote:
Originally Posted by dragon2309 View Post
but my C# knowledge goes about as far as....
printf("I suck");
Which isn't C#
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Oct 29th, 2006, 5:12 PM   #4
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about extra Sound and Graphics libraries Soulstorm C++ 2 May 15th, 2006 10:42 AM
Smart Device Application how to load data from xml MeBia C# 2 Feb 9th, 2006 8:48 AM
creating an application that stands between the browser and the serve ronias Visual Basic 5 Oct 30th, 2005 4:22 PM
apt-get based application J_K9 Project Ideas 0 Oct 20th, 2005 10:58 AM
turning integers into sound? clam Visual Basic .NET 2 Aug 23rd, 2005 1:28 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:07 AM.

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