// 找图(如果找到点击图片中心,如果没有找到继续找)
Function _FindPicOnScreenAndClickIt(imgFullPath, imgWidth, imgHeight)
返回值 = Lib.myMouse._MoveToPos(0,0) // 鼠标先移动到0,0
screenX = Plugin.GetSysInfo.GetScreenResolutionX
screenY = Plugin.GetSysInfo.GetScreenResolutionY
Rem startFindPic
FindPic 0,0,screenX,screenY,imgFullPath,0.9,intX,intY
If intX > 0 And intY > 0 Then
imgX = intX + (imgWidth / 2)
imgY = intY + (imgHeight / 2)
返回值 = Lib.myMouse._LeftClickPos(imgX,imgY)
返回值 = Lib.myDelay._Mutiples1()
Else
Goto startFindPic
End If
End Function
按键精灵找图并点击图片中间
最新推荐文章于 2024-08-07 13:44:55 发布