Hallo,
ich wollte mal fragen ob es eine Möglichkeit gibt, die Lautstärke nicht nur einzustellen sondern auchg auszulesen, also
SoundSetWaveVolume(..) -> SoundGetWaveVolume()
Wäre nett wenn mir jemand helfen könnte..
Lg Phil-IT
Hallo,
ich wollte mal fragen ob es eine Möglichkeit gibt, die Lautstärke nicht nur einzustellen sondern auchg auszulesen, also
SoundSetWaveVolume(..) -> SoundGetWaveVolume()
Wäre nett wenn mir jemand helfen könnte..
Lg Phil-IT
Das geht am besten mit der Bass UDF.
#include <WinAPIMisc.au3>
#include <BASS.au3>
_BASS_Startup()
_BASS_Init(0)
$fVolume = _BASS_GetVolume()
ConsoleWrite("Current Volume: " & $fVolume)
_BASS_SetVolume(0.3)
ConsoleWrite("Current Volume: " & 0.3)
_WinAPI_PlaySound($SND_ALIAS_SYSTEMQUESTION, $SND_ALIAS)
Sleep(1000)
_BASS_SetVolume($fVolume)
ConsoleWrite("Current Volume: " & $fVolume)
_WinAPI_PlaySound($SND_ALIAS_SYSTEMQUESTION, $SND_ALIAS)
_BASS_Free()
[/autoit]Ja des hab ich auch schon gefunden, ist mir aber dann zu aufwendig, es wäre nur etwas kleines am Rand gewesen, aber hab es jetzt anders gelöst, danke trotzdem!