Hi,
This might be useful to someone, this a full implementation; if you find it useful use it:
#include <MsgBoxConstants.au3>
MsgBox(64, "Easter", "You have entered the program", 30)
; Set volume to 100% (Windows actually does 2 steps increments for the volume)
Local $i = 0
While $i <= 50
Send("{VOLUME_UP}", 0)
$i = $i + 1
WEnd
; Sets the system wave volume to 100%. This controls the Wave volume, not the master volume control. Also, a value of Zero does not set mute status.
SoundSetWaveVolume(100)
; Play one of the default sytem sounds
SoundPlay(@WindowsDir & "\media\tada.wav", 1)
MsgBox(64, "Easter", "The previous sound was played at 100%, the next one will be at 50%", 30)
; Set volume from 100% to 50%
Local $i = 0
While $i <= 25
Send("{VOLUME_Down}", 0)
$i = $i + 1
WEnd
; Sets the system wave volume to 100%. This controls the Wave volume, not the master volume control. Also, a value of Zero does not set mute status (Send("{VOLUME_MUTE}", 0) does that).
SoundSetWaveVolume(100)
; Play one of the default sytem sounds
SoundPlay(@WindowsDir & "\media\tada.wav", 1)
MsgBox(64, "Egg", "You are leaving the program", 30)