按键精灵9后台鼠标点击
本人菜鸟自己写了一个脚本效果是让他达到后台到指定图形然后点击,可问题图是找到了,鼠标无法点击是不是哪里出错了呢Hwnd=Plugin.Window.Find(0,"37大...
本人菜鸟 自己写了一个脚本 效果是让他达到后台到指定图形然后点击,可问题图是找到了,鼠标无法点击 是不是哪里出错了呢
Hwnd = Plugin.Window.Find(0, "37大天使之剑")
sRect = Plugin.Window.GetClientRect(Hwnd)
Dim G
G = Split(sRect, "|")
Ux = CLng(G(0))
Uy = CLng(G(1))
PutAttachment "D:\Pic","挂.bmp"
Call Plugin.BGCP2_02.TransformWindow(hwnd)
HandleArray=Plugin.BGCP2_02.LoadBMP("D:\Pic\挂.bmp")
Call Plugin.BGCP2_02.FindPicture(hwnd, 0, 0,1440, 900 ,HandleArray(0),30,0.9,x,y)
If x > 0 and y > 0 Then
MessageBox "找到了"
Else
MessageBox "没到了"
End If 展开
Hwnd = Plugin.Window.Find(0, "37大天使之剑")
sRect = Plugin.Window.GetClientRect(Hwnd)
Dim G
G = Split(sRect, "|")
Ux = CLng(G(0))
Uy = CLng(G(1))
PutAttachment "D:\Pic","挂.bmp"
Call Plugin.BGCP2_02.TransformWindow(hwnd)
HandleArray=Plugin.BGCP2_02.LoadBMP("D:\Pic\挂.bmp")
Call Plugin.BGCP2_02.FindPicture(hwnd, 0, 0,1440, 900 ,HandleArray(0),30,0.9,x,y)
If x > 0 and y > 0 Then
MessageBox "找到了"
Else
MessageBox "没到了"
End If 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询