[番茄时钟]tomato

x:=A_ScreenWidth-500 y:=A_ScreenHeight-200 countdown:=1200 currentstatus:=time CustomColor = 010101 Gui +LastFound +Alwa
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

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA捐赠
共{{data.count}}人
人已捐赠
其他

[网络]获取mac地址的两种方法

2017-6-7 12:26:51

其他

[Quickz]select_value

2017-6-11 20:47:32

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