_SoundGetWaveVolume

Returns app volume of script, Windows Vista, 7, 8, 10 only

Miscellaneous.au3
_SoundGetWaveVolume( [ $iValueOnError = -1 ] )

parameters

$iValueOnError Value to return when an error occurs

return value

number value App volume of script or $iValueOnError at an error

error value

@error = 1 Unable to create Struct
@error = 2 Dll file not found
@error = 3 Wrong call so not on Windows Vista, 7, 8 or 10
@error = 4 Internal error, array not returned
@error = 5 Volume wasn't received
@error = 6 Volume couldn't read

related

SoundSetWaveVolume

example

SoundSetWaveVolume(50)                         ; sets app volume to 50%
ConsoleWrite(_SoundGetWaveVolume())    ; writes 50% on the console if successful