2025-03-26 00:02:56 +08:00

83 lines
872 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ahk
``` 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
    }
}
```