关键字:
找图、找色、移动和点击
找图:
抓抓截图,添加到附件
FindPic 0,0,1024,768,"Attachment:\Xmind.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
TracePrint "找到了" //找到打印
Else
TracePrint "没找到" //找不到打印
End If
找色:
FindColor 0,0,1024,768,"1B22FE",intX,intY
If intX > 0 And intY > 0 Then
TracePrint "find"
MoveTo intX,intY
Else
TracePrint "error"
End If
移动和点击:
FindColor 0,0,1024,768,"1D1FFF",intX,intY
If intX > 0 And intY > 0 Then
TracePrint "find"
MoveTo intX, intY
LeftDoubleClick 1
Else
TracePrint "error"
End If