按键精灵在移动窗口实现操作同一位置,我做了一个脚本,做好后,如果窗口移动了就不管用了,应该怎么修改,
DimhwndHwnd=Plugin.Window.MousePoint()s=Plugin.Window.GetClientRect(hwnd)XYArray=Spli...
Dim hwnd
Hwnd = Plugin.Window.MousePoint()
s =Plugin.Window.GetClientRect(hwnd)
XYArray = Split(s, "|", -1, 1)
dx = XYArray(0)
dy = XYarray(1)
For 10000
Call Plugin.Bkgnd.MoveTo(Hwnd, 663-dx, 622-dy)
Delay 30
Call Plugin.Bkgnd.LeftClick(Hwnd,663-dx, 622-dy)
Delay 30
next 展开
Hwnd = Plugin.Window.MousePoint()
s =Plugin.Window.GetClientRect(hwnd)
XYArray = Split(s, "|", -1, 1)
dx = XYArray(0)
dy = XYarray(1)
For 10000
Call Plugin.Bkgnd.MoveTo(Hwnd, 663-dx, 622-dy)
Delay 30
Call Plugin.Bkgnd.LeftClick(Hwnd,663-dx, 622-dy)
Delay 30
next 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询