- function 倒计时(句柄,tick)
- if tick == 0 then
- print("nice")
- closeWindow(句柄,true) --关闭窗口
- return
- end
- setLableText(句柄,"idTick","运行倒计时:"..tick)
- setTimer(倒计时,2000,句柄,tick - 1)
- end
- function 加载事件(句柄)
- setTimer(倒计时,1000,句柄,5)
- end
- showUI("自启动.ui",500,500,加载事件)
- while true do
- toast("开始运行",0,0,20)
- sleep(1000)
- end
复制代码
|
|