I noticed the hours becomes 00, which the format is converting it to 12 instead. How do I keep this as 0 and not show 12?
Code: Select all
#SingleInstance, force
; initSecs := 7200 ; number of seconds to wait
initSecs := 1800 ; number of seconds to wait
Gui, 99:+AlwaysOnTop +Disabled -SysMenu +Owner
Gui, 99:Font,s20 bold,Verdana
Gui, 99:Add, Text, w140 vTX , %initSecs%
Gui, 99:Show
Gui, 99:Flash
loop % initSecs-1 {
GuiControl,99:,TX,% Frmt(--initSecs)
sleep, 1000
}
Gui, 99:Destroy
return
Frmt(secs) {
time = 20000101
time += %secs%, seconds
FormatTime, hmmss, %time%, h:mm:ss
return hmmss
}
esc::
ExitApp