Hello, gentle beings,

I've being plagued by this issue for years, both with XP and now Windows 7, and, when I get around to upgrading, probably Windows 8 will offer no help. It's wild that Microsoft never provides the opportunity to switch between devices in the operating system using a hotkey, eh?

At any rate, I suggest the easiest solution is, at least in Windows 7, to have the Playback Devices window open, and we could write a simple little app to issue keystrokes to the list of available sound devices in order to select the one you want, and then hit the "Apply" button to activate that one.

I'm fairly new to scripting, and have done some pretty cool things working with a free command-line utility to control Winamp from within the Window-Eyes scripting environment, to set and retrieve bookmarks. This is why I feel confident that Window-Eyes allows us to do pretty well anything we want to do.

For me, it's just a matter of time before I learn the best way to switch sound cards using Window-Eyes.

Good luck to all of us,

Rod Hutton

-----Original Message----- From: Chip Orange
Sent: Wednesday, October 31, 2012 9:16 PM
To: [email protected]
Subject: RE: ap for changing soundcards

Thanks Bruce, but this doesn't seem to be related to sound cards and their
specific properties.

BTW, you may be interested to know that in the public beta, the async issue
of WMI which you were having seems to have been solved (although I don't
recall seeing it mentioned in the read me, s I thought I'd mention it ).

Chip


-----Original Message-----
From: BX [mailto:[email protected]]
Sent: Wednesday, October 31, 2012 9:45 PM
To: [email protected]
Subject: Re: ap for changing soundcards

Hi Dave and Chip,

    This is the standard format for a WMI inside a VBScript. If you have
Power
Shell then the format goes down to a single line command.
    Do more search on this to get more properties detail on it.
        Bruce

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from
Win32_SoundDevice") For Each objItem in colItems
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "Device ID: " & objItem.DeviceID
    Wscript.Echo "DMA Buffer Size: " & objItem.DMABufferSize
    Wscript.Echo "Manufacturer: " & objItem.Manufacturer
    Wscript.Echo "MPU 401 Address: " & objItem.MPU401Address
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID
    Wscript.Echo "Product Name: " & objItem.ProductName
    Wscript.Echo "Status Information: " & objItem.StatusInfo Next
----- Original Message -----
From: "Chip Orange" <[email protected]>
To: <[email protected]>
Sent: Wednesday, October 31, 2012 4:02 PM
Subject: RE: ap for changing soundcards


Hi Dave,

I looked at this, or something like it, in the past and decided I couldn't
do it.
It might be possible to use WMI to do this, but I didn't know WMI well
enough.

If you aren't using VBScript, but you're using some language with access
to
all the Windows APIs, then you've probably got all you need to do it at
that
point, and you can forget WMI; but WMI was the only way I saw for VBScript
to do it.

Hth,

Chip


> -----Original Message-----
> From: Dave Bahr [mailto:[email protected]]
> Sent: Wednesday, October 31, 2012 4:02 AM
> To: gw-scripting
> Subject: ap for changing soundcards
>
> Hi gang,
>
> I was wondering something, and if I've asked this before I'm sorry.
> Would it be possible for someone to make an ap to switch between sound
> cards in the windows control pannel? To make each the default card and
> then have we announce what card it is? I have multiple audio devices,
> so I figured some sort of rotor would be nice. Any thoughts on this one?
>
> --
> Dave C. Bahr
> Facebook: Dave Bahr
> Twitter: dcbahr


Reply via email to