Code: Select all
Gui, Add, Text, x20 y20 w100 h20, First Launch
Gui, Add, Text, x20 y80 w100 h20, % "Countdown: 21.5"
Gui, Add, Text, x20 y50 w100 h20, Second Launch
Gui, Add, Text, x20 y110 w100 h20, % "Countdown: 7"
Gui, Show
End::
SoundBeep, 1500
countdown1 = 21.5
countdown2 = 7
Loop {
countdown1 -= 0.1
countdown2 -= 0.1
GuiControl, , Countdown1, % countdown1
GuiControl, , Countdown2, % countdown2
if (countdown1 <= 0) {
SoundBeep, 1000
break
}
Sleep, 100
}
Loop {
countdown2 -= 0.1
GuiControl, , Countdown2, % countdown2
if (countdown2 <= 0) {
SoundBeep, 500
break
}
Sleep, 100
}
I have a script which is beeping when I press End on my keyboard, then its counting down 21.5 seconds and beeps another time thats should be the „first launch“. Then after this beep, it shoult count down 7. seconds, after the 7 seconds it should beep a last time. So these countdown I want to display in a gui, which I also tried to do. It should look like this
Before pressing end:
First Launch:
Press END to start
Second Launch:
Press END to start
When pressed END:
First Launch:
Time: 21.5s <-(this timers updating every 0.1 seconds)
Second Launch:
Wait…
When Second Countdown started:
First Launch:
Fired…
Second Launch:
Time: 7.0s
After every countdown is done, the gui should reset to the Before pressing END state.
I would also like you to do a thin outline around the first and second countdown if possible.
And please add the AlwaysToTop function, so that this windows is always on top of other Windows.
Thanks for helping me! Really appreciate it!