Download - includes ANSI, Unicode and x64 exe files.
These commands now have improved support Windows Vista and later. As a result, any scripts which already used them on Vista or later may not work the same way or at all. The syntax is the same as before, but device numbering and component support differs.
Each device returned by the audio API gets a different number. Since the audio architecture on Vista and later is very different to earlier versions of Windows, the device numbering for SoundSet/SoundGet is also different. Windows may report a separate device for each output or input connector on a physical device (e.g. Speakers, Line In, Microphone, Stereo Mix, etc.). On Vista and later DeviceNumber defaults to the default playback device, not necessarily device 1.
Currently only Volume and Mute controls are supported. Other control types are supported by Windows, but very few are supported by the sound devices I have at hand - I suspect that those other control types would be very rarely available.
As an alternative to the old sound card analysis script, I have written a script which lists all devices, showing the device name and number, and all component and control types it supports. Volume and Mute can also be adjusted using the Gui (one at a time). The Endpoint and Adapter names should match up to what you see in the Sound control panel.
- AutoHotkey v1.1.10-alpha1+
- Windows Vista or later
- VA.ahk version 2.2 (which I've just uploaded)
This release includes support for custom Gui controls, by specifying the window class of the control. For more details see here or ask fincs.
...has been updated. See SoundGet and SoundSet or Custom control.