- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
F7::
hTray := WinExist("ahk_class Shell_TrayWnd")
ControlGetPos, X,,,, CiceroUIWndFrame1
WinGetPos,, Y_Tray,, H_Tray
Gui, -Caption +ToolWindow +AlwaysOnTop +Owner
Gui, Margin, 0, 0
Gui, Color, 0x99FF99
Gui, Font, s3
Gui, Add, Text, % "center x0 y4 cWhite w" H_Tray " h" H_Tray - 8, % sec := 10
Gui, Show, % "NA x" X-250 " y" Y_Tray - 4
StartTime := A_TickCount
SetTimer, Timer, 600000
Return
Timer:
Gui, +AlwaysOnTop
Time := (A_TickCount - StartTime)//1000
if (Time != PrevTime)
{
GuiControl,, Static1, % res := sec - Time
PrevTime := Time
}
if res = 0
{
SetTimer, Timer, Off
SoundPlay, *16
Sleep 10
Gui, -Caption +ToolWindow +AlwaysOnTop +Owner
Gui, Margin, 0, 0
Gui, Color, Red
Gui, Font, s3
Gui, Add, Text, % "center x0 y4 cWhite w" H_Tray " h" H_Tray - 8, % sec := 10
Gui, Show, % "NA x" X-250 " y" Y_Tray - 4
Return
}
ExitApp