Jump to content

Problem with _IECreateEmbedded

Recommended Posts


This script:

#include <IE.au3>

Run OK.

But this script:

#include <IE.au3>
$Form1=GUICreate("test-browser", 820, 640, 40, 20)
$bof=GUICtrlCreateObj($IE, 1, 1, 810, 630)


While GUIGetMsg()<>-3

Don't run.

For ref, the ap0.htm:

<script language=Javascript>
ponx=new ActiveXObject('Ponx.Mci');


with "Create", the (java)-script is launch

with "CreateEmbedded", the (java)-script is not launched. But the HTML's part is display (in all cases).

I had try to embbed the activeX "Shell.Explorer.2" in another application (Paradox), and, with use of Navigate2("file:///C:/ap0.htm"), it's OK. Consequently, it's not a problem componant (assumption), because it run OK in another place.

Any idea?

Thank by advance

Edited by Michel Claveau
Link to post
Share on other sites


Thank for your answer.

Sorry, I'm bad in english ; consequently, my explanations was ambiguous.

In reality, the javascript run, in all cases. It's only the "new ActiveXObject" who block (the javascript execution).

If I set two "alert" before, and after, this part of code, with _IECreate, I have 2 alerts, with _IECreateEmbedded, I have only 1 alert.

put the Javascript in a hidden IE window with _IECreate

It's an idea, unfortunately the ActiveX object must interact with the page (exchange of objects)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...