更新下。18点和21点两个show time自动点击,12点刷新。21:05停止脚本。
Hwnd = Plugin.Window.Find(0, "PopKart Client")
i=0
Do until i=1
系统时间=now
时 = hour(系统时间)
分 = Minute(系统时间)
If 时 = 12 and 分 = 00 Then
Call b()
Delay 1000
ElseIf 时 = 21 and 分 = 03 Then
Call d()
Delay 1000
ElseIf 时 = 18 and 分 = 02 Then
Call a()
Delay 1000
ElseIf 时 = 21 and 分 = 02 Then
Call a()
Delay 1000
ElseIf 时=hour(系统时间)and 分=Minute(系统时间) Then
Call c()
Delay 1000
End If
i = 1
Loop
Sub a
Delay 10000
Call Plugin.Bkgnd.LeftClick(Hwnd, 706, 336)
End Sub
Sub b
Delay 6000
Call Plugin.Bkgnd.LeftClick(Hwnd, 60, 747)
Delay 6000
Call Plugin.Bkgnd.LeftClick(Hwnd, 480, 744)
Delay 6000
Call Plugin.Bkgnd.LeftClick(Hwnd, 514, 554)
End Sub
Sub c
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 129, 745)
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 120, 694)
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 129, 745)
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 120, 694)
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 521, 588)
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 507, 428)
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 557, 593)
End Sub
Sub d
Delay 1000
ExitScript
End Sub
[ 此帖被苯苯~决绝在2020-03-05 22:49重新编辑 ]