Code: Select all
Gui, Add, Text, vD y0, %Start%
Specifically: vD y0
The current thread will exit."
The countdown still works, but the error pops up.
I want it to be that once the countdown timer finishes, the program won't exit, but instead go back to the beginning and restart the process.
I believe it is set up that way, but it doesn't want to execute the line specified above. I honestly copied most of this and don't really know much of it other than that it adds to the gui with each line. I don't understand the vD, but other than that I pretty much got the gist.
At this point, I don't really care too much if you explain it to me, I just want it to work.
Code: Select all
Beginning:
PixelGetColor, var1, 931, 786
PixelGetColor, var2, 874, 810
if (var1=0x4141EA) && (var2=0xFFFFFF)
{
Gosub, Middle
}
Gosub, Beginning
Middle:
Start = 39.980
Gui, +AlwaysOnTop +ToolWindow -SysMenu -Caption
Gui, Color, CCCCCC
Gui, Font, cFF0000 s20 , verdana
Gui, Add, Text, vD y0, %Start%
Gui, Show, NoActivate x0 y0,uptime
WinSet, TransColor, CCCCCC 255,uptime
StartTime := A_TickCount
SetTimer, End, 25
Return
End:
Seconds := Start - ((A_TickCount - StartTime)/1000)
GuiControl, , D, %Seconds%
Gui, Show, NoActivate x0 y0,uptime
If seconds < 0.025
{
Gui, Hide
SetTimer,, Off
Gosub, Beginning
}
Return