这段代码是改变活动窗口的一个例子,你看看。Dim WshShellSet WshShell=WScript.CreateObject("WScript.Shell")WshShell.Run "notepad.exe"WScript.Sleep 200WshShell.AppActivate "无标题 记事本"WshShell.SendKeys "Hello!"