第1个回答 2014-08-20
biaozhi=0
Do until biaozhi=11 //连续检测直到1分钟后跳出循环
If Color 200,325,"0",0 Then //判断某点颜色
biaozhi=biaozhi+1
else
biaozhi=0 //循环中间发间颜色不持续,则重新检测1分钟
End If
Delay 6000 //延时6秒
Loop
KeyPress "F5", 1 //颜色持续1分钟后,按F5
思路就是这样,你自己修改为后台。
第2个回答 推荐于2016-01-06
//得到鼠标指向的窗口句柄
Hwnd = Plugin.Window.MousePoint()
i = 0
Do
//取窗口句柄(变量:Hwnd)窗口的客户区(坐标:0, 0)处的颜色
GetColor = Plugin.Bkgnd.GetPixelColor(Hwnd, 0, 0)
If GetColor = "000000" Then
i = i + 1
If i = 60 Then
Call Plugin.Bkgnd.KeyPress(Hwnd, 116)
i = 0
Delay 5000
End If
Else
i = 0
End If
Delay 1000
Loop本回答被提问者和网友采纳
第3个回答 2014-08-19
Rem asd
IfColor 162,299,[9C7329],0
KeyPress "Enter", 1
Else
Delay 2000
Goto asd
End If