The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 Darren Paskell

Subject:

 Re: does anyone know how to detect the default sound device?

Date:

 Thu, May 6, 2010 7:36:48 pm
Hi Chip,

I think you could do it indirectly through the SAPI 5 COM interface,
which is pretty much ubiquitous across modern Windows installations.
I'm afraid I don't have any sample code for you, but I'm sure I've
read about sound card enumerations somewhere in the SAPI SDK. It is
possible to interact with at least the basic elements of this SDK with
VBScript.

Hope this helps.

Darren

On 06/05/2010, Allison and Chip Orange wrote:
does anyone know a way, accessible via VBScript, to detect either the
default sound device (I'd poll for it changing regularly), or a way to be
notified when the default audio device is changed?

thanks.

Chip