PuzzledGreatly wrote:Thanks for the link, unfortunately I could get neither version of the code posted by Skan to do anything.
It might have just been the errant color coding the other forum adds.
This Skan script works for me.
Code: Select all
#SingleInstance, Force
SetWorkingDir %A_ScriptDir%
MySoundFile1 = %SystemRoot%\Media\tada.wav
MySoundFile2 = %SystemRoot%\Media\chimes.wav
FileRead, Sound1, *c %MySoundFile1%
FileRead, Sound2, *c %MySoundFile2%
PlaySound( Sound1 )
PlaySound( Sound2 )
Return
PlaySound( ByRef Sound ) {
Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0
, UInt, ((SND_MEMORY:=0x4)|(SND_NODEFAULT:=0x2)) )
}
Don't know if it will help with making the loop any smoother but you can try it.
FG