按键精灵在后台找图的时候,后台不被遮挡的时候能找到图,后台一被遮挡,图片就找不到了。怎么回事啊?
代码是这样的:Delay1000Hwnd=Plugin.Window.MousePoint()XY=Plugin.Bkgnd.FindPic(Hwnd,0,0,1024,...
代码是这样的:
Delay 1000
Hwnd = Plugin.Window.MousePoint()
XY = Plugin.Bkgnd.FindPic(Hwnd, 0, 0, 1024, 768, "Attachment:\神盾.bmp", 0, 0.9)
iZB = InStr(XY, "|")
X = CLng(Left(XY, iZB - 1))
Y = CLng(Right(XY, Len(XY) - iZB))
If X >= 0 and Y >= 0 Then
Call Plugin.Bkgnd.MoveTo(Hwnd, X+10, Y+10)
Delay 1000
Call Plugin.Bkgnd.LeftDown(Hwnd, X+10, Y+10)
Delay 1000
End If
请问哪里出问题了啊? 展开
Delay 1000
Hwnd = Plugin.Window.MousePoint()
XY = Plugin.Bkgnd.FindPic(Hwnd, 0, 0, 1024, 768, "Attachment:\神盾.bmp", 0, 0.9)
iZB = InStr(XY, "|")
X = CLng(Left(XY, iZB - 1))
Y = CLng(Right(XY, Len(XY) - iZB))
If X >= 0 and Y >= 0 Then
Call Plugin.Bkgnd.MoveTo(Hwnd, X+10, Y+10)
Delay 1000
Call Plugin.Bkgnd.LeftDown(Hwnd, X+10, Y+10)
Delay 1000
End If
请问哪里出问题了啊? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询