平时设置了一个按键精灵脚本,但是平时使用就不能干别的事情了,希望高手给我转成后台操作,谢谢,要循环

2024-12-26 21:34:10
推荐回答(2个)
回答1:

Hwnd = Plugin.Window.MousePoint()
Rem a
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
delay 150
Call Plugin.Bkgnd.KeyPress(Hwnd, 65)
Call Plugin.Bkgnd.KeyPress(Hwnd, 66)
Call Plugin.Bkgnd.KeyPress(Hwnd, 67)
Call Plugin.Bkgnd.KeyPress(Hwnd, 68)
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
Call Plugin.Bkgnd.KeyPress(Hwnd, 51)
Call Plugin.Bkgnd.KeyDown(Hwnd, 16)
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
Call Plugin.Bkgnd.KeyUp(Hwnd, 16)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
delay 150
Goto a
脚本循环次数设置成1次,先把鼠标移动到需要运行脚本的窗口上,再启动脚本
以上是无限循环的脚本,如果你想设置成运行固定次数,请把
Rem a
Goto a
改成
For 运行次数
Next

回答2:

Delay 4000 r=Plugin.Window.MousePoint() Delay 1000 Rem start Call Plugin.Bkgnd.KeyPress(r,56) Delay 2000 Call Plugin.Bkgnd.KeyPress(r,50)