![Image](https://i.ibb.co/R0PQcZT/20230824132257.png)
Here's what I got so far:
Code: Select all
; Play a single random sound from this folder
path := A_ScriptDir
Loop Files, path "\*.wav"
lst .= A_LoopFilePath "`n"
lst := Sort(lst, "Random")
for x,y in StrSplit(lst,"`n")
SoundPlay(y, Wait)
Code: Select all
Warning: This variable appears to never be assigned a value
Code: Select all
SoundPlay(y, Wait)
![Image](https://i.ibb.co/7nFSNHp/20230824132605.png)
For the record, I'm to implement this script in V2.
Would some kind-hearted person please help me to make this script work in V2?