按键精灵后台点击鼠标

发布于2022-01-12 19:25:00

以下是我自己写的后台点击左键的脚本Plugin Hwnd = Window.MousePoint()Plugin s = Window.GetClientRect(hwnd)XYArray = Split(s, "|", -1, 1)dx = XYArra

1个回答
admin
网友回答2022-01-12
今天才看见你的帖子,呵呵。脚本里面有错误,首先是后台鼠标没有固定位置,其次是没有把前台鼠标移出窗口。脚本修改平台按键7.31Plugin Hwnd = Window.MousePoint()Plugin s = Window.GetClientRect(hwnd)XYArray = Split(s, "|", -1, 1)dx = XYArray(0)dy = XYarray(1)//增加前台鼠标移出MoveTo 0,0Delay 100Rem loop//向后台窗口句柄(变量:Hwnd)发送一个鼠标移动到客户区域(坐标:688-dx, 410-dy)处Plugin Bkgnd.MoveTo(Hwnd, 688-dx, 410-dy)Delay 100Plugin Bkgnd.LeftClick(hwnd,688-dx,410-dy)Delay 100Plugin Bkgnd.LeftClick(hwnd,688-dx,410-dy)Delay 1000Goto loop

回到
顶部