2 SetTimer -1 at same time, and SoundPlay, , 1
Posted: 16 Oct 2019, 05:46
Anyone can help me to make music loop? I was trying like this, but SoundPlay, , 1 make the twinkle label waiting too for it's done
Code: Select all
#SingleInstance, force
#Persistent
Menu, Tray, NoStandard
Menu, Tray, NoIcon
Gui, Font, tBold s120
Gui, Add, Text, +Center vMusic, PLAYING
Gui, Show, , Loop
SetTimer, TwinkleText, -1
SetTimer, MusicLoop, -1
Return
MusicLoop:
SoundPlay, DOFAKIN.mp3, 1
SetTimer, MusicLoop, -1
Return
TwinkleText:
Gui, Font, cRed
GuiControl, Font, Music
Sleep, 1000
Gui, Font, cBlack
GuiControl, Font, Music
Sleep, 1000
SetTimer, TwinkleText, -1
Return