Reputation: 130
How can i get the Previous Volume Value after Soundset Command?
I want to run a Sound with a Volume Value and then go back to the Orginal (Previous) Volume Value.
The Code that i have does not goes back.
SoundSet 70
SoundPlay C:\Windows\media\tada.wav,wait
Upvotes: 0
Views: 141
Reputation: 3366
This plays a sound at 70% volume and then restores the original volume
SoundGet oldvolume
soundset 70
SoundPlay C:\Windows\media\tada.wav,wait
soundset oldvolume
Reference
Upvotes: 1