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
Delay 4000 r=Plugin.Window.MousePoint() Delay 1000 Rem start Call Plugin.Bkgnd.KeyPress(r,56) Delay 2000 Call Plugin.Bkgnd.KeyPress(r,50)