Code: Select all
soundfile1=%systemroot%\Media\crucial.wav
fileread,crucialsound,c* %soundfile1%
playsound(crucialsound)
msgbox sound finished playing
return
PlaySound(sndPointer) {
SoundSet, +1, MASTER, mute,10
DllCall("winmm.dll\PlaySound","uint",&sndPointer,"uint",0,"uint",0x5) ;plays sound from memory, SND_MEMORY = 0x4, SND_ASYNC = 0x1 ( 4 | 1 = 5)
}
Thanks!