gpholman Posted January 27, 2016 Share Posted January 27, 2016 Hi I'm unable to interact with an IE OCX (ieframe.dll) embedded in a Window (3rd party, not AutoIT GUI) can someone please tell me what I'm doing wrong: #include <ie.au3> $win = wingethandle("test window") $ocx = controlgethandle($win, "", "[CLASS: Internet Explorer_Server; INSTANCE:1]") _IENavigate($ocx, "test.html") $win and $ocx return the correct handles but that's as far as I can get - is $ocx the wrong handle to be using? Link to comment Share on other sites More sharing options...
alienclone Posted January 27, 2016 Share Posted January 27, 2016 _IEAttach() If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
gpholman Posted January 27, 2016 Author Share Posted January 27, 2016 Thanks, that looks to be just what I should be using bit I'm still not getting anywhere. autoit window info tells me the object Class is 'Internet Explorer_Server' but whatever I try I get nothing back. I think I should be using the 'embedded' option (the ocx is 'embedded' in the parent window, right?). Link to comment Share on other sites More sharing options...
alienclone Posted January 28, 2016 Share Posted January 28, 2016 there is an embedded option for ieattach If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
gpholman Posted January 28, 2016 Author Share Posted January 28, 2016 Great, thanks, thats what I needed. This threw me for ages as it kept failing - finally tracked it down to the web page being called causes _IEAttach to fail on the line 'Return $oIE.Document.parentwindow'. Other web pages work just fine. Has anyone else experienced this? I'm guessing the page is fannying about with the DOM in some fashion that screws things up?? 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