G. user17
G. user17

Reputation: 130

How can i get the Previous Volume Value after Soundset Command - Autohotkey

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

Answers (1)

Jim U
Jim U

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

Related Questions