按键精灵后台找图问题 250
Hwnd=Plugin.Window.MousePoint()XY=Plugin.Bkgnd.FindPic(Hwnd,0,0,1024,768,"C:\ss1.bmp"...
Hwnd = Plugin.Window.MousePoint()
XY = Plugin.Bkgnd.FindPic(Hwnd, 0, 0, 1024, 768, "C:\ss1.bmp", 0, 0.9)
iZB = InStr(XY, "|")
X = CLng(Left(XY, iZB - 1))
Y = CLng(Right(XY, Len(XY) - iZB))
If intX > 0 And intY > 0 Then
Call Plugin.Bkgnd.KeyPress(Hwnd, 120)
Else
Call Plugin.Bkgnd.KeyPress(Hwnd, 112)
End If
代码如下 可以运行,但是一直无法判断出图片 请高手指导一下 展开
XY = Plugin.Bkgnd.FindPic(Hwnd, 0, 0, 1024, 768, "C:\ss1.bmp", 0, 0.9)
iZB = InStr(XY, "|")
X = CLng(Left(XY, iZB - 1))
Y = CLng(Right(XY, Len(XY) - iZB))
If intX > 0 And intY > 0 Then
Call Plugin.Bkgnd.KeyPress(Hwnd, 120)
Else
Call Plugin.Bkgnd.KeyPress(Hwnd, 112)
End If
代码如下 可以运行,但是一直无法判断出图片 请高手指导一下 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询