按键精灵如何让脚本在指定时间运行

[复制链接]
查看11 | 回复3 | 2021-4-16 07:19:52 | 显示全部楼层 |阅读模式
Start1=1:Start2=1While TrueDo Until Start10 Or Start20
MyTime = Time
Start1 = DateDiff("s", MyTime, "10:00:00") Start2 = DateDiff("s", MyTime, "23:00:00") Delay 400 LoopCall YourFunction() //注意你的代码不能是死循环,同时,运行时间不能超过13个小时WendSub YourFunction() //下面写你执行的代码End Sub假设你的功能代码是死循,要用两个线程,假设你想不同时间执行不同...
回复

使用道具 举报

千问 | 2021-4-16 07:19:52 | 显示全部楼层
Start1=1:Start2=1While TrueDo Until Start10 Or Start20
MyTime = Time
Start1 = DateDiff("s", MyTime, "10:00:00") Start2 = DateDiff("s", MyTime, "23:00:00...
回复

使用道具 举报

千问 | 2021-4-16 07:19:52 | 显示全部楼层
i=0Do until i=1系统时间=now时=hour(系统时间)分=Minute(系统时间)If 时 = 10 and 分 = 00 Then Call a()Delay 1000ElseIf 时 = 23 and 分 = 00 Then Call b()i = 1Delay 1000End If...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行