0

I'm trying to identify already opened IE window and save downloaded file [.xml]. I'm using this online XML editor for testing purposes. So once "Do you want to open or save file.xml" popup window appears I need to save file automatically using of .vbs file.

Dim objIE
Dim ObjShell
Set ObjShell = CreateObject("Shell.Application")
For Each wnd In ObjShell.Windows
  If InStr(1, wnd.FullName, "iexplore.exe", vbTextCompare) > 0 Then
    Set objIE = wnd
    Exit For
  End If
Next

WScript.Sleep 500
ObjShell.SendKeys "%{s}"

Script above returns runtime error:

Object doesn't support this property or method: 'SendKeys'.

Is there any way how can I save already downloaded file in IE11 using VBScript?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.