Jump to content

IECreate woes in Win7 & IE11


Recommended Posts

I'm sorry to post, but I need some help.

I have a Windows 7 machine with Internet Explorer 11 and the latest Autoit.  I can't get this simple line to run and it's just bogglling me.

#include <IE.au3>
Local $oIE = _IECreate()
Local $sHTML = "<h1>Hello World!</h1>"

>"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "D:autoittest1.au3"    
--> IE.au3 T3.0-1 Error from function _IECreate,  (Browser Object Creation Failed)
>Exit code: 0    Time: 0.312

I have no idea why this is happening.  Can anyone help me with any tips?

Link to comment
Share on other sites

No zombies running.  I found that advice in another thread and was the first thing I checked.

As for what I'm trying to do, is just get IE open to a website.

The code you see above is actually Example #4 from the helpfile.  In fact, none of the examples work.  I get the same error: "--> IE.au3 T3.0-1 Error from function _IECreate,  (Browser Object Creation Failed)"

Link to comment
Share on other sites

I now also have a Windows 7 machine with Internet Explorer 11 and the latest Autoit and this works ok for me.

#include <IE.au3>

Local $oIE = _IECreate()
Local $sHTML = "<h1>Hello World!</h1>"
_IEBodyWriteHTML($oIE, $sHTML)

of course I've included the required last line which is missing from your first post:

_IEBodyWriteHTML($oIE, $sHTML)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...