按键精灵区域找图的问题,本人新手做了个区域找图来练练手结果老是找到指定区域以外的地方?求高手解答

2024-12-19 21:54:58
推荐回答(2个)
回答1:

亲 语句中MoveR intx, inty是鼠标相对移动intx,inty的意思 把MoveR intx, inty换成MoveTo intx, inty试试 也就是这样
Rem a
FindPic 299,580,472,732,"D:\新建文件夹\胡明.bmp",0.7,intX,intY
Delay 500
If intX > 0 And intY > 0 Then
Delay 500
MoveTo intx, inty
Delay 500
RightClick 1
Else
Goto a
End If

回答2:

Rem a
FindPic 0,0,1024,768,"D:\新建文件夹\胡明.bmp",0.7,intX,intY
Delay 500
If intX > 0 And intY > 0 Then
Delay 500
MoveR intx, inty
Delay 500
RightClick 1
Else
Goto a
End If