SlowCoder74 Posted April 23, 2014 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)
Solution jguinch Posted April 23, 2014 Solution 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
SlowCoder74 Posted April 23, 2014 Author 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.
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