![]() |
#2
wube2013-02-05 21:37
|
只有本站会员才能查看附件,请 登录

If s1 = s2 Then
GoTo aa3 '跳转标记3
End If
Do
waittime 1.6
dm_ret = Dm.FindStr(0, 0, 1024, 768, "团", "ffc800-856707", 0.9, intX, intY) 'NPC任务判断颜色
If intX >= 0 And intY >= 0 Then
waittime 0.5
Dm.MoveToEx intX, intY + 15, 36, 98
waittime 0.6
Dm.LeftClick
End If
waittime 1.42
dm_ret = Dm.FindStr(422, 305, 541, 323, "我要回", "c1a763-766947", 0.9, intX, intY) 'NPC界面判断
If intX >= 0 And intY >= 0 Then
waittime 0.3
Dm.MoveToEx intX, intY, 119, 18
waittime 0.6
Dm.LeftClick
waittime 3
dm_ret = Dm.FindStr(898, 5, 959, 22, "军团", "ffffff-d5d5d5", 0.9, intX, intY) '地图判断
If intX >= 0 And intY >= 0 Then
waittime 0.21
Exit Do
End If
waittime 0.22
Loop
我代码 loop 前面有 DO 可是生成执行文件弹出这个编辑错误GoTo aa3 '跳转标记3
End If
Do
waittime 1.6
dm_ret = Dm.FindStr(0, 0, 1024, 768, "团", "ffc800-856707", 0.9, intX, intY) 'NPC任务判断颜色
If intX >= 0 And intY >= 0 Then
waittime 0.5
Dm.MoveToEx intX, intY + 15, 36, 98
waittime 0.6
Dm.LeftClick
End If
waittime 1.42
dm_ret = Dm.FindStr(422, 305, 541, 323, "我要回", "c1a763-766947", 0.9, intX, intY) 'NPC界面判断
If intX >= 0 And intY >= 0 Then
waittime 0.3
Dm.MoveToEx intX, intY, 119, 18
waittime 0.6
Dm.LeftClick
waittime 3
dm_ret = Dm.FindStr(898, 5, 959, 22, "军团", "ffffff-d5d5d5", 0.9, intX, intY) '地图判断
If intX >= 0 And intY >= 0 Then
waittime 0.21
Exit Do
End If
waittime 0.22
Loop
