Windows 10 Visual Basic Script SendKeys macro usage operating on Internet Explorer 11.0.140

  • Thread starter Thread starter JohnLa
  • Start date Start date
J

JohnLa

Guest
I'm stumped. I'm trying to use the VBS SendKeys macro to operate IE 11. First, I start IE as follows from the command prompt:

START "Internet Explorer" "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http:\\www.msn.com"



Then, in VBS, I issue:

Set shell = CreateObject("WScript.Shell")
shell.appActivate "Internet Explorer"
shell.sendKeys "%"

but alas, it does not work. I've also attempted "iexplore.exe", and the iexplore.exe ProcessId, as alternative parameters to appActivate. Also, these do not work.

Other competitor's browsers (Firefox, Firefox ESR, Chrome, and Opera) seem to work correctly(with accommodations).

Thanks in advance for any insight you may be able to provide.

More...
 
Back
Top