//鼠标指向目标窗口启动脚本
Import "Window.dll"
Import "Bkgnd.dll"
Dim Hwnd = Window.MousePoint()
Dim 返回值 = MsgBox("得到鼠标指向的窗口句柄为:" & Hwnd & "\r\n窗口标题:" & Window.GetText(Hwnd), "法科脚本92AJ_CN", 1, 1)
If 返回值 = 1 Then
Do
Bkgnd.KeyPress(Hwnd, 32)
Delay 500
Loop
End If
//制作:法科
//时间:2017-09-22