【发布时间】:2021-11-08 15:05:27
【问题描述】:
我正在使用 PowerShell 抓取网络,并试图绕过 Internet Explorer 的下载对话框。
在互联网上的任何地方(example 1、example 2)我都能找到这个代码:
$wshell = new-object -com wscript.shell
$wshell.appactivate("Save As")
$wshell.sendkeys("%s")
$wshell.sendkeys("{Enter}")
但是当我尝试执行它时,只需设置 Num Lock On:
我做错了什么?
【问题讨论】:
标签: powershell internet-explorer automation script