Stanley Posted November 13, 2008 Share Posted November 13, 2008 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 More sharing options...
PsaltyDS Posted November 13, 2008 Share Posted November 13, 2008 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). 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now