Jump to content

help:IE.au3: $IEComErrorWinDescription = Access is denied.


Stanley
 Share

Recommended Posts

Hi, all,

When I use autoIT to control a window with two or more IE instances include in it. It show following error messages:

Error Log:

----> $IEComErrorScriptline = 47

----> $IEComErrorNumberHex = 80020009

----> $IEComErrorNumber = -2147352567

----> $IEComErrorWinDescription = Access is denied.

----> $IEComErrorDescription = Access is denied.

----> $IEComErrorSource =

----> $IEComErrorHelpFile = C:\WINDOWS\system32\mshtml.hlp

----> $IEComErrorHelpContext = 0

----> $IEComErrorLastDllError = 0

I know it's a cross-domain issue. But I don't know how to handle it.....

Code:

$h_control=ControlGetHandle("Window with 5 ie controls","","[CLASS:Internet Explorer_Server; INSTANCE:5]")

$oResult = __IEControlGetObjFromHWND($h_control)

Link to comment
Share on other sites

Hi, all,

When I use autoIT to control a window with two or more IE instances include in it. It show following error messages:

Error Log:

----> $IEComErrorScriptline = 47

----> $IEComErrorNumberHex = 80020009

----> $IEComErrorNumber = -2147352567

----> $IEComErrorWinDescription = Access is denied.

----> $IEComErrorDescription = Access is denied.

----> $IEComErrorSource =

----> $IEComErrorHelpFile = C:\WINDOWS\system32\mshtml.hlp

----> $IEComErrorHelpContext = 0

----> $IEComErrorLastDllError = 0

I know it's a cross-domain issue. But I don't know how to handle it.....

Code:

$h_control=ControlGetHandle("Window with 5 ie controls","","[CLASS:Internet Explorer_Server; INSTANCE:5]")

$oResult = __IEControlGetObjFromHWND($h_control)

The browser executable itself contains the cross domain scripting limitations. AutoIt can't do anything about that. You have to get the URL for each iFrame that comes from a different site and open it in its own instance of the browser (or its own tab, if IE7).

:mellow:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...