This commit is contained in:
Bartek Dobrowolski-Nowakowski
2022-04-20 15:26:28 +02:00
parent 3d17e156b5
commit 5d0472feec
416 changed files with 16963 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
GoTo EndRace_DAYTONASUNDAYCUP600_Def
Race_DAYTONASUNDAYCUP600()
{
controller.Buttons.Cross.SetState(true)
controller.Buttons.RS.SetState(true)
DllCall("Sleep", "UInt", 8200)
controller.Axes.LX.SetState(65)
t0 := A_TickCount
tf := t0+t
loop {
DllCall("Sleep", "UInt", 500)
;timeleft := Format("{:d}", (tf-A_TickCount)/1000)
;timeref := Format("{:d}", 20000101000000)
;timeref += timeleft, seconds
;progress := Format("{:d}", (((t/1000)-(tf-A_TickCount)/1000))/(t/100000))
;progress := Format("{:d}", (t-(tf-A_TickCount)))
;FormatTime, timeleftfull, %timeref%, H:mm.ss
; GuiControl,, ST, Time Left : %timeleftfull%
; GuiControl,, MyProgress, %progress%
} until A_TickCount >= tf
;GuiControl,, MyProgress, 0
controller.Buttons.Cross.SetState(false)
controller.Dpad.SetState("None")
controller.Axes.LX.SetState(50)
controller.Buttons.RS.SetState(false)
return
}
EndRace_DAYTONASUNDAYCUP600_Def: