把悲伤留给自己~陈升:能看懂按键精灵语句的进来

来源:百度文库 编辑:高校问答 时间:2024/04/26 12:02:03
一下使一段按键精灵的脚本
t1=Hour(time)+Minute(time)/60+second(time)/3600
t2=Hour(time)+Minute(time)/60+second(time)/3600
Rem a
KeyPress 112 1
Delay 200
t=Hour(time)+Minute(time)/60+second(time)/3600
If t-t1<0.002
Goto a
EndIf
If t-t2<0.002
Goto a
EndIf
IfColor 53 24 523c39 2
KeyPress 113 1
Delay 200
t1=Hour(time)+Minute(time)/60+second(time)/3600
EndIf
IfColor 92 11 42455a 2
KeyPress 114 1
Delay 50
t2=Hour(time)+Minute(time)/60+second(time)/3600
EndIf
Goto a
If t-t1<0.002
Goto a
EndIf
If t-t2<0.002
Goto a
EndIf
IfColor 53 24 523c39 2
KeyPress 113 1
Delay 200
t1=Hour(time)+Minute(time)/60+second(time)/3600
EndIf
IfColor 92 11 42455a 2
KeyPress 114 1
Delay 50
t2=Hour(time)+Minute(time)/60+second(time)/3600
EndIf
Goto a
谁能告诉我这几句是什么意思
t1=Hour(time)+Minute(time)/60+second(time)/3600
t2=Hour(time)+Minute(time)/60+second(time)/3600
t=Hour(time)+Minute(time)/60+second(time)/3600

把当前时间转换成小时
比如现在10点20分30秒=10+20/60+30/3600=10.34166小时

Hour(time)+Minute(time)/60+second(time)/3600
把当前时间换化为X.XX小时

t1,t2,t都是,不过3个值由于执行先后的不一样,所以值也不一样