按键精灵后台鼠标移动和点击脚本怎么制作。

发布于2022-01-12 19:23:54

我想用按键精灵制作一个,可以在后台(就是窗口最小化或者隐藏窗口)对指定窗口移动鼠标左键和点击鼠标左键的脚本,但看了很多贴后制作出的脚本,但作用窗口

1个回答
admin
网友回答2022-01-12
脚本如下Dim hwndPlugin hwnd=Window.MousePoint()Delay 1000Rem starPlugin BGKM5.MMove(hwnd,668,297)//移动左键到“军事行动”Delay 400Plugin BGKM5.LClick(hwnd,668,297)//左键单击“军事行动”Delay 400Plugin BGKM5.MMove(hwnd,573,199)//移动左键到“第一舰队”Delay 400Plugin BGKM5.LClick(hwnd,573,199)//左键单击“第一舰队”Delay 400Plugin BGKM5.MMove(hwnd,727,377)//移动左键到“急速”Delay 400Plugin BGKM5.LClick(hwnd,727,377)//左键单击“急速“Delay 400Plugin BGKM5.MMove(hwnd, 808,405)//左键移动到“确定出击”Delay 400Plugin BGKM5.LClick(hwnd,808,405)//左键单击“确定出击”Delay 400Plugin BGKM5.MMove(hwnd,758,300)//左键移动到“确定”Delay 400Plugin BGKM5.LClick(hwnd,758,300)//左键单击“确定”Delay 500Plugin BGKM5.MMove(hwnd,1062,57)//左键移动到“关闭窗口”Delay 400Plugin BGKM5.LClick(hwnd,1062,57)//左键单击“关闭窗口”Delay 400//以上为一个出征循环,多次出征可复制以上内容Plugin BGKM5.MMove(hwnd,668,297)//移动左键到“军事行动”Delay 400Plugin BGKM5.LClick(hwnd,668,297)//左键单击“军事行动”Delay 400Plugin BGKM5.MMove(hwnd,573,199)//移动左键到“第一舰队”Delay 400Plugin BGKM5.LClick(hwnd,573,199)//左键单击“第一舰队”Delay 400Plugin BGKM5.MMove(hwnd,727,377)//移动左键到“急速”Delay 400Plugin BGKM5.LClick(hwnd,727,377)//左键单击“急速“Delay 400Plugin BGKM5.MMove(hwnd, 808,405)//左键移动到“确定出击”Delay 400Plugin BGKM5.LClick(hwnd,808,405)//左键单击“确定出击”Delay 400Plugin BGKM5.MMove(hwnd,758,300)//左键移动到“确定”Delay 400Plugin BGKM5.LClick(hwnd,758,300)//左键单击“确定”Delay 500Plugin BGKM5.MMove(hwnd,1062,57)//左键移动到“关闭窗口”Delay 400Plugin BGKM5.LClick(hwnd,1062,57)//左键单击“关闭窗口”Delay 400Plugin BGKM5.MMove(hwnd,668,297)//移动左键到“军事行动”Delay 120000

回到
顶部