872 B
872 B
#ahk
global start := 1
SetTimer, Timer, 60000
!l::ChangeStart()
Timer()
{
If (start == 1)
{
Gui, Destroy
Gui +AlwaysOnTop
WinGetTitle, title, "time"
Gui Add, Button, gChoiceClose,ok
Gui, Show, AutoSize Center
}
}
ChoiceClose:
Gui, Destroy
Return
ChangeStart()
{
If (start == 1)
{
start := 0
Gui, Destroy
Gui +AlwaysOnTop
WinGetTitle, title, "time"
Gui Add, Button, gChoiceClose,no
Gui, Show, AutoSize Center
}
Else
{
start := 1
Gui, Destroy
Gui +AlwaysOnTop
WinGetTitle, title, "time"
Gui Add, Button, gChoiceClose,yes
Gui, Show, AutoSize Center
}
}