Sorry Bruce, my bad there; the formatting was bad on my end, and I just
missed a key part of the command, sorry.

I did have a look at this though, and I could not find a writable property
which allowed you to control which card was the default; not saying that
it's not there, just that I didn't see it.

This seems like it's an issue GW should easily be able to answer for us once
they're all done with the next release.

Chip


> -----Original Message-----
> From: BX [mailto:bronx_...@fltg.net]
> Sent: Wednesday, October 31, 2012 11:58 PM
> To: gw-scripting@gwmicro.com
> Subject: Re: ap for changing soundcards
> 
> 
> Hi Chip,
> 
>     The only WMI available is what I posted and that is for the
> win32sounddevice...
> 
>     It gets more involved, including using the direct sound and it is all
written
> in C++ code.
> 
> The only other suggestion I can give is the WMI.NET and searching that for
> any hints.
> 
> http://msdn.microsoft.com/en-us/library/bb404655.aspx
> 
>     The enumeration of the device is all you can do and provide a context
> menu for settings and such for the device. It is all done in C code.
> 
>         Bruce
> 
> ----- Original Message -----
> From: "Chip Orange" <lists3...@comcast.net>
> To: <gw-scripting@gwmicro.com>
> Sent: Wednesday, October 31, 2012 8:16 PM
> 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:bronx_...@fltg.net]
> > Sent: Wednesday, October 31, 2012 9:45 PM
> > To: gw-scripting@gwmicro.com
> > 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" <lists3...@comcast.net>
> > To: <gw-scripting@gwmicro.com>
> > 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:dcba...@gmail.com]
> > > 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