按键精灵脚本求教。循环。只要鼠标点击,下面两幅图,第一幅图要点击“开始战斗”,第二幅图要点击“返回”。 应该用

按键精灵脚本求教。循环。

只要鼠标点击,下面两幅图,第一幅图要点击“开始战斗”,第二幅图要点击“返回”。

应该用抓图还是抓色?如何查看那个按键的坐标(X轴、Y轴)。

两幅图中间时间不确定,所以无法用时间循环,请问怎么循环这一回合?

能不能做成后台?


jessi_79 1年前 已收到1个回答 举报

kkkk2 幼苗

共回答了23个问题采纳率:87% 举报

用找图吧。
Do
i = 0
While i = 0 //设置循环条件找图
FindPic 0,0,1024,768,"Attachment:开始.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i = 1//找到后跳出循环。找下一张
MoveTo intX, intY
Delay 100
LeftClick
Delay 200
End If
Wend
i = 0
While i = 0
FindPic 0,0,1024,768,"Attachment:返回.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i = 1
MoveTo intX, intY
Delay 100
LeftClick
Delay 200
End If
Wend
loop
望采纳

1年前

5
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.410 s. - webmaster@yulucn.com