set WshShell = CreateObject("WScript.Shell") doif WshShell.AppActivate("窗口名") = true then Wscript.sleep 100WshShell.sendkeys "0000"Wscript.sleep 100WshShell.sendkeys "~"end ifWscript.sleep 300loop
窗口名改为你那个弹出窗口的名字