Let's say this is the code, when you press w it starts music, releasing the key silences it
Code: Select all
loop,
{
if GetKeyState("w","P")
soundplay,looooooongsound.wav
else
soundplay,empty.wav ;its purpose is to break the looooooongsound.wav
sleep,25
}
return
How to make it so it doesn't replay the looooooongsound.wav??
maybe with A_index in a loop?