回复 2楼gljxsd的帖子听您的,改成条件判断了,果然如此,很灵,而且反应也更快了,但是,不知道怎么跳出去了,取得五个色如果都不符合就跳出循环,试过GetColor5 ≠ "6788A0",好像没有这种不等号的代码,郁闷了,再次劳烦您
Do
Rem c
Delay 200
GetColor1 = GetPixelColor(395, 250)//宝图
TracePrint "取点1"
GetColor2 = GetPixelColor(368, 183)//宝图
TracePrint "取点2"
GetColor3 = GetPixelColor(856, 272)//进度条
TracePrint "取点3"
GetColor4 = GetPixelColor(470, 335)//画面
TracePrint "取点4"
GetColor5 = GetPixelColor(466, 220)//自动
TracePrint "取点5"
Delay 200
If GetColor1 = "D8965C" and GetColor2 = "67F1FF" Then
TracePrint "宝图"
Delay 200
MoveTo 395, 250
Delay 500
LeftClick 1
Delay 2000
End If
If GetColor5 = "6788A0" Then
TracePrint "金宝库了"
do
IfColor 144, 32,"A7A7FB",1 Then
Delay 200
MoveTo 399, 72//离开
Delay 500
LeftClick 1
Delay 2000
MoveTo 299, 227//确定
Delay 500
LeftClick 1
Delay 1000
goto c
End If
Delay 2000
Loop
End If
Delay 6000
TracePrint "过!"
Loop