[番茄时钟]tomato

x:=A_ScreenWidth-500
y:=A_ScreenHeight-200
countdown:=1200
currentstatus:=time
CustomColor = 010101
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %CustomColor%
Gui, Font, s64
Gui, Add, Text, vMyText cBlack gCountdown, XXXXXXXXX
WinSet, TransColor, %CustomColor% 150
SetTimer, UpdateOSD, 1000
Gosub, UpdateOSD
Gui, Show, x%x% y%y% NoActivate
return


FormatSeconds(NumberOfSeconds)
{
    time = 19990101  ; 任意日期的 *午夜*.
    time += %NumberOfSeconds%, seconds
    FormatTime, mmss, %time%, mm:ss
    return NumberOfSeconds//3600 ":" mmss
}

UpdateOSD:
FormatTime, Time_Formated , HH24MISS, HH:mm:ss
GuiControl,, MyText, %Time_Formated%
return

UpdateCountdownOSD:
countdown:=countdown-1
GuiControl,, MyText, % FormatSeconds(countdown)
return

Countdown:
if (currentstatus=time)
{
SetTimer, UpdateOSD, off
SetTimer, UpdateCountdownOSD, 1000
currentstatus:=countdown
}
else
{
SetTimer, UpdateCountdownOSD, off
SetTimer, UpdateOSD, 1000
currentstatus:=time
}
return

 

最后修改: 2018-08-29 11:38

人已赞赏
AHKV1

[办公]超级发送

2017-6-8 20:53:57

AHKV1

[Quickz]select_value

2017-6-11 20:47:32

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
今日签到
有新私信 私信列表
搜索