knights-path/Testing/sound.vbs
2024-02-28 13:43:34 -05:00

8 lines
272 B
Plaintext

Set Sound = CreateObject("WMPlayer.OCX.7")
Sound.URL = "C:\Users\Rushil Umaretiya\Desktop\Knight's Path\Testing\Music\KP Music.mp3"
Sound.Controls.play
do while Sound.currentmedia.duration = 0
wscript.sleep 100
loop
wscript.sleep (int(Sound.currentmedia.duration)+1)*1000