请问下,这2种循环结构有啥区别吗,第一种第一次没找到,不会找到第二个找色,第二种的也是,都是找到才往下执行,
FindColor 1,3,307,69,"C04922",intX1,intY1
If intX1 > 0 And intY1 > 0 Then
TracePrint "1"
End If
FindColor 1,3,307,69,"FFB944",intX2,intY2
If intX1 > 0 And intY1 > 0 Then
TracePrint "1"
End If
////////////////////////////////////////////////////////////////////////////////
FindColor 1,3,307,69,"C04922",intX1,intY1
FindColor 1,3,307,69,"FFB944",intX2,intY2
If intX1 > 0 And intY1 > 0 Then
TracePrint "1"
If intX2 > 0 And intY2 > 0 Then
TracePrint "2"
End If
End If