本帖最后由 c755731262 于 2015-4-28 18:19 编辑
- '为什么不能按自己设想的把对话框逐个关掉,最后关掉计算器
- set ws=createobject("wscript.shell")
- set oexec=ws.exec("calc.exe")
- wscript.sleep 10000
- wscript.echo oexec.processid
- wscript.sleep 5000
- ws.appactivate "windows script host"
- wscript.sleep 5000
- ws.sendkeys "%{f4}"
- wscript.echo oexec.status
- wscript.sleep 5000
- ws.appactivate "windows script host"
- wscript.sleep 5000
- ws.sendkeys "%{f4}"
- wscript.sleep 5000
- oexec.terminate
复制代码
|