This is a stopwatch script
Code: Select all
timerm := "44" ; original value = "00"
timers := "55" ; original value = "00"
stopped := "0"
Gui, +ToolWindow -Caption +AlwaysOnTop
Gui, Show, NoActivate x1610 y0,uptime
GUi Color ,Yellow
Gui, Font, cRed s14 bold
Gui, Add, Text, x5 y0 w80 h29 vTText, %timerm%:%timers%
Gui, Show, h24 w60, Stopwatch
Settimer, Stopwatch, 1000
RETURN
Stopwatch:
timers += 1
if(timers > 59)
{
timerm += 1
timers := "0"
GuiControl, , TText , %timerm%:%timers%
}
if(timers < 10)
{
GuiControl, , TText , %timerm%:0%timers%
}
else
{
GuiControl, , TText , %timerm%:%timers%
}
if(timerm =45 )
{
Run C:\Users\user\Desktop\IMage GUI.ahk
}
/*
Image GUI
Gui, +ToolWindow -Caption +AlwaysOnTop
Gui, Add, Picture, x0 y0, Blue Tick.png
gui, font, s10, Verdana
Gui, show, x1585 y0,
Gui, Show, w24 h24,
*/
return
GuiClose:
GuiEscape:
ExitApp
return
How to make it , if timerm =45 and timers = 00
because, as long as timerm shows 45 the "Image GUI" is getting refreshed every second. Once the watch shows 46, it is stable.
Regards.