0
IE自動化プロセスでキーを送信しています。最初にCtrl + S(保存)を押すと、Webページを変数$currentDate
という名前のMHTファイルとして保存します。SendWaitと変数
[System.Windows.Forms.SendKeys]::SendWait('^{s}')
Start-Sleep -m 500
[System.Windows.Forms.SendKeys]::SendWait('{$currentDate}')
SendWait('{}')
の使用変数の正しい形式は何ですか?
私は両方('{'"$currentDate"'}')
と('{"$currentDate"}')
は、なぜあなたがキーを送って使うのですか? theInternetExplorer.Applicationオブジェクトからsave asコマンドを使用します。 – guiwhatsthat