Does anyone know of a programming solution to adjust the advanced volume settings in a Windows XP Pro machine that does not involve using the "SendKeys" function to emulate keystrokes? That solution doesn't always work, and takes too long as the script is being processed.
The settings I'm referring to can be manually edited by going to the Control Panel -> Sounds and Audio Devices -> Advanced. Once there, the settings I need to adjust are for:
Speaker, Wave, SW Synth, CD Player
I and my collegues have looked around on Microsoft and other's sites for an extremely long time and have not found a way to do this. I'm hoping a windows guru out there has had to do just this thing before and can make us feel silly by not finding it sooner. Surely there must be some registry key or something to edit for these, but I can't find it. Any reliable, quickly executing, programming solution in any language would be an acceptable answer. Using the sendkey's function doesn't work reliably, as to adjust this it takes a long time as .NET, VB and VBScript programs process the commands to lower the scrollbars. I really need something that can set the values by sending a specific command or number and not by looping a specific number of times.
Thanks for ideas and help! If there's no solution by April 30 the most creative programming attempt not using SendKeys gets the points, but the attempt must be in good faith and not be just garbage. Please help and good luck!