代码语言:javascript复制
Dim intX,intY
//KeepCapture
//FindPic 0, 0, 0, 0, "Attachment:cad.bmp","000000", 0, 0.9, intX, intY
FindPic 0, 50, 1366, 767, "Attachment:cad.bmp", 0.9, intX, intY
TracePrint"找到"&intX&","&intY
//如果没有找到,intX和intY的值都会被置为-1
If intX > - 1 And intY > - 1 Then
TracePrint"找到"
End If
//ReleaseCapture