好友
阅读权限10
听众
最后登录1970-1-1
|
Q = Int(Rnd * (422 - 229)) + 218
W = Int(Rnd * (595 - 557)) + 556
E = Int(Rnd * (956 - 952)) + 951
R = Int(Rnd * (304 - 300)) + 299
D = Int(500 * Rnd + 100)
DO
KeyDown "Z", 1
Delay 100
KeyUp "Z", 1
Delay D
MoveTo Q, W
LeftClick 1
Delay D
KeyDown "F1", 1
Delay 100
KeyUp "F1", 1
Delay D
MoveTo E, R
LeftClick 1
Delay D
FindPic 0, 0, 1440, 900, "Attachment:\0球.bmp", 0.9, intX, intY
FindPic 0, 0, 1440, 900, "Attachment:\返回.bmp", 0.9, intO, intP
If intX > 0 And intY > 0 OR intO > 0 And intP > 0 Then
End If
MoveTo 794, 597
Delay 806
KeyDown "Right", 1
Delay 183
KeyUp "Right", 1
Delay 217
KeyDown "Down", 1
Delay 183
KeyUp "Down", 1
Delay 567
KeyDown "Z", 1
Delay 150
KeyUp "Z", 1
Delay 934
KeyDown "Z", 1
Delay 116
KeyUp "Z", 1
Delay 1350
KeyDown "Z", 1
Delay 150
KeyUp "Z", 1
Delay 550
KeyDown "Z", 1
Delay 133
KeyUp "Z", 1
Delay 5000
KeyDown "Left", 1
Delay 1000
Loop
这个是全部代码,目标是代码A循环运行到找到目标图片运行代码B,现在的情况是代码A运行不了 我试了下把LOOP加在end if 后面发现运行不了代码B
麻烦有没有大神帮忙看看错在哪 |
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|