Sign in to follow this  
Followers 0
Viscouse

IECreate woes in Win7 & IE11

7 posts in this topic

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?

Share this post


Link to post
Share on other sites



Do you have any zombie ie instances running?   Have a look in task manager and see if you have too many instances of Iexplore.exe.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

What are you trying to do?  Are you trying to create a web page with <h1>Hello World!</h1> on it?  Look at the help pages for: _IEBodyWriteHTML or _IEDocInsertHTML

Edited by Jury

Share this post


Link to post
Share on other sites

Do the sample scripts at the bottom of the _IECreate() helpfile entry work for you?

Share this post


Link to post
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)"

Share this post


Link to post
Share on other sites

I should add that I have another machine, also Win7, but running IE8.  I ran the same script as in the initial post and it worked perfectly.

Could it be a IE issue?

Share this post


Link to post
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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0