I wanted to change 'Countdown Timer Big' to minutes only, where I changed 'secsLeft' to 'minLeft':
Code: Select all
if WinExist("MyCountdown") {
Gui, 19:Destroy
SetTimer, ShowTimerCD, Off
}
else {
InputBox, minLeft , Countdown, Countdown Minutes:,,160,123,,,,15
If ErrorLevel
Return
Gui 19:+LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 19:Color, EEAA99
Gui 19:Font, s228
Gui 19:Margin, 0, 0
Gui 19:Add, Text, w335 h290 yp-50 Vdisp Cred Right
WinSet TransColor, EEAA99
Gui 19:Show, NoActivate, MyCountdown
SetTimer, ShowTimerCD, 1000
Gosub ShowTimerCD
Return
}
ShowTimerCD:
minLeft--
IfEqual, minLeft, 0
{
Loop 4
{
GuiControl, 19:Text, disp, 0
Sleep 400
GuiControl, 19:Text, disp,
Sleep 400
}
SetTimer ShowTimerCD, Off
;Sleep 3000
Gui, 19:Destroy
}
Else
GuiControl, 19:Text, disp, %minLeft%
Return
Perhaps someone could point me in the right direction?