发布时间:2019-07-31 16:32:12
感觉没有任何问题啊,为什么跑程序的时候总是跳转不过去呢?哪位大神帮忙看一下
Rem 重新开始搜索
UserVar K=1 "购买倍数"
UserVar A=3 ""
UserVar B=3 ""
//-------↓--搜大--↓-------
FindPic 1043,283,1070,308,"C:\Users\Administrator\Desktop\素材库\1大.bmp",1,intX,intY
If intX>0 and intY>0 Then
//(已找到 大)
UserVar A=1 "找到大"
//移动鼠标选择 买大
MoveTo 44, 207
LeftClick 1
KeyPress "D", 1
KeyPress "A", 1
KeyPress "Space", 1
UserVar C=0 "C值归零"
Goto 跳过小
End If
//(未找到 小)
UserVar B=2 "找到小"
//移动鼠标选择 买小
MoveTo 47, 87
LeftClick 1
KeyPress "X", 1
KeyPress "I", 1
KeyPress "A", 1
KeyPress "O", 1
KeyPress "Space", 1
UserVar C=0 "C值归零"
Rem 跳过小
FindPic 1044,307,1068,329,"C:\Users\Administrator\Desktop\素材库\1大.bmp",1,intX,intY
If intX>0 and intY>0 Then
UserVar C=1 "本期开大"
Goto 。。。
End If
UserVar C=2 "本期开小"
Rem 。。。
If A=C or B=C Then
//输入倍数K
MoveTo 67, 303
LeftClick 1
KeyPress "Y", 1
KeyPress "I", 1
KeyPress "N", 1
KeyPress "g", 1
KeyPress "Space", 1
Goto 跳过本段
End If
//输入倍数K=K*2 确认购买
MoveTo 67, 398
LeftClick 1
KeyPress "s", 1
KeyPress "h", 1
KeyPress "u", 1
KeyPress "Space", 1
Rem 跳过本段
UserVar C=0 "C值归零"