Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: How to play two sounds at once?

$
0
0

CODE:

#Requires AutoHotkey v1.1.33.11
s1 := "s2.wav"
s2 := "s1.wav"
playAudio(s1)
playAudio(s2)

playAudio(audioFile) {
psScript := "(New-Object Media.SoundPlayer """ audioFile """).PlaySync()"
Run % "powershell -NoProfile -Command & {" psScript "}",, Hide
}

Statistics: Posted by mikeyww — 20 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles