Hwnd = Plugin.Window.Foreground()
If Hwnd>0
Call Plugin.Window.Active(Hwnd)
Call Plugin.bgkms6_10.FakeWindowState(Hwnd, 2)
//目标窗口对应的进程总是以为目标窗口在前台,361度6.10
Rem a
Call Plugin.Bkgnd.KeyDown(Hwnd, 32)
Call Plugin.Bkgnd.KeyUp(Hwnd, 32)
Delay 400
Goto a
Else
MsgBox("窗口获得失败,按确定结束……")
//如果句柄获取失败,脚本结束
End If
If Hwnd>0
Call Plugin.Window.Active(Hwnd)
Call Plugin.bgkms6_10.FakeWindowState(Hwnd, 2)
//目标窗口对应的进程总是以为目标窗口在前台,361度6.10
Rem a
Call Plugin.Bkgnd.KeyDown(Hwnd, 32)
Call Plugin.Bkgnd.KeyUp(Hwnd, 32)
Delay 400
Goto a
Else
MsgBox("窗口获得失败,按确定结束……")
//如果句柄获取失败,脚本结束
End If