按键精灵 如何写循环找三个图 找到一个就鼠标点击 如果都找不到就执行一个按键操作

2024-12-18 23:57:48
推荐回答(1个)
回答1:

FindPic 0+Ux,0+Uy,1920+Ux,1080+Uy,"Attachment:\a.bmp",0.8,aX,aY
If aX > 0 And aY > 0 Then
//鼠标点击
Exit
FindPic 0+Ux,0+Uy,1920+Ux,1080+Uy,"Attachment:\b.bmp",0.8,bX,bY
If bX > 0 And bY > 0 Then
//鼠标点击
Exit
FindPic 0+Ux,0+Uy,1920+Ux,1080+Uy,"Attachment:\c.bmp",0.8,cX,cY
If cX > 0 And cY > 0 Then
//鼠标点击
Exit
//按键操作
End If
End If
End If