SlowCoder74 Posted April 23, 2014 Share Posted April 23, 2014 Not sure what's going on here. I'm passing the hWnd of the previously created IE window to _IEAttach, but it doesn't seem to want to return the object so I can grab body text. IEAttach returns error 7 (no match). My sample script: #include <IE.au3> $iIEHWnd = Run(@ProgramFilesDir & "\Internet Explorer\iexplore.exe") sleep(5000) ;give time to finish loading page $oIE = _IEAttach($iIEHWnd,"hwnd") msgbox(0,"","Error:" & @error) $sIEBody = _IEBodyReadText($oIE) msgbox(0,"",$sIEBody) Link to comment Share on other sites More sharing options...
Solution jguinch Posted April 23, 2014 Solution Share Posted April 23, 2014 (edited) The Run fonctions returns the process ID, not a window handle. Use _IECreate() instead. Edited April 23, 2014 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
SlowCoder74 Posted April 23, 2014 Author Share Posted April 23, 2014 The Run fonctions returns the process ID, not a window handle. Use _IECreate() instead. You know ... I knew that. Dang it. 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