Sign in to follow this  
Followers 0
Stanley

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

2 posts in this topic

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)

Share this post


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

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