按键精灵如何后台找图
PutAttachment"D:\Pic","PLAY.BMP"Hwnd=Plugin.WndEx6.GetMousePointWindowKMData=Plugin.b...
PutAttachment "D:\Pic","PLAY.BMP"
Hwnd=Plugin.WndEx6.GetMousePointWindow
KMData = Plugin.bgkms6_10.KMTransform(hwnd, 0)
Call Plugin.BGCP2_02.TransformWindow(hwnd)
Call Plugin.Bkgnd.MoveTo(Hwnd, 0, 0)
HandleArray=Plugin.BGCP2_02.LoadBMP("D:\Pic\PLAY.BMP")
Call Plugin.BGCP2_02.FindPicture(hwnd, 0, 0,1366, 768 ,HandleArray(0),30,0.9,x,y)
If x > 0 and y > 0 Then
Call Plugin.bgkms6_10.MoveTo(KMData, x, y)
Delay 2000
call Plugin.bgkms6_10.LeftClick (KMData)
MessageBox "找到了"
Else
MessageBox "没找到"
End If
Delay 300
Sub OnScriptExit
Call Plugin.BGCP2_02.UnTransformWindow(hwnd)
call Plugin.bgkms6_10.KMUntransform (KMData)
End Sub
前台能找到 但我把游戏最小化后就找不到了 哪里出问题了 展开
Hwnd=Plugin.WndEx6.GetMousePointWindow
KMData = Plugin.bgkms6_10.KMTransform(hwnd, 0)
Call Plugin.BGCP2_02.TransformWindow(hwnd)
Call Plugin.Bkgnd.MoveTo(Hwnd, 0, 0)
HandleArray=Plugin.BGCP2_02.LoadBMP("D:\Pic\PLAY.BMP")
Call Plugin.BGCP2_02.FindPicture(hwnd, 0, 0,1366, 768 ,HandleArray(0),30,0.9,x,y)
If x > 0 and y > 0 Then
Call Plugin.bgkms6_10.MoveTo(KMData, x, y)
Delay 2000
call Plugin.bgkms6_10.LeftClick (KMData)
MessageBox "找到了"
Else
MessageBox "没找到"
End If
Delay 300
Sub OnScriptExit
Call Plugin.BGCP2_02.UnTransformWindow(hwnd)
call Plugin.bgkms6_10.KMUntransform (KMData)
End Sub
前台能找到 但我把游戏最小化后就找不到了 哪里出问题了 展开
展开全部
追问
但我不把游戏最小化 打开个网页吧游戏挡住 它也找不到图
追答
可能你的游戏窗口图色不一定是用dx刷屏模式,可能是gdi模式刷屏,361度图色插件默认以dx刷屏方式后台获取图色,图色后台操作本人建议用大漠插件,大漠比361度插件好得多,首先可以设定后台方式,其次执行效率比361度插件高,你可以尝试用大漠插件。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询