//把游戏窗口放前面 按启动键
//得到当前最前面的窗口句柄
Hwnd = Plugin.Window.Foreground()
//标记
Rem 无限循环
//后台按下空格键
Plugin.BGKM5.KeyClick(Hwnd, 32)
//延时10分钟
Delay 1000 * 60 * 10
//跳到标记
Goto 无限循环
Delay 2000 ------------【运气脚本后,2秒内在需要的窗口单击,
Dim hwnd
hwnd=Plugin.Window.MousePoint()
for 10000 -----------[循环10000次]
Call Plugin.Bkgnd.KeyPress(hwnd, 32)
Delay 60000
endfor
也许 do loop 更适合 ,不会用
For 10000
Delay 600000
KeyPress "Space", 1
Next
循环10000次,如果不够,再加
Hwnd=Plugin.Window.MousePoint()
Rem a
Call Plugin.Bkgnd.KeyPress(Hwnd, 32)
Delay 60000
Goto a