i = 0
Do
Do
Delay 100
Do
Do
MoveTo 1814+5, 178//点击再次炼化位置
LeftClick 1
Delay 100
FindPic 1656,197,1853,424,"Attachment:\忽视风12.bmp",0.99,intX,intY//右边新炼化查找第一炼化保存的图片
If intX > 0 And intY > 0 Then
TracePrint"找到炼化1"
MoveTo 1750+5, 450+2//移动到替换
Delay 100
LeftClick 1//替换第一炼化
Delay 500
FindPic 1440,205,1640,424,"Attachment:\忽视风12.bmp",0.99,intX,intY//左边查找第一炼化保存的图片
If intX > 0 And intY > 0 Then
MoveTo intX+60,intY//定位到替换第一炼化位置偏移右侧打勾位置
Delay 500
LeftClick 5//勾选保存第一炼化
TracePrint "第一炼化勾选保存"
Else
TracePrint"找不到替换的炼化1"
Delay 100
TracePrint "继续查找,直至替换的炼化1出现为止"
End If
Exit do
Else
TracePrint"找不到炼化1"
Delay 100
MoveTo 1814+5, 178//点击再次炼化位置
LeftClick 1
Delay 100
TracePrint"继续查找,直至炼化1出现为止"
End If
Loop
Loop
大佬帮忙看一下,这里的12行if里面不能再嵌套if了嘛,从12行的12执行完后直接跳到29行了,弄得头晕