Jump to content

Can't get _IEAttach to return object?


Go to solution Solved by jguinch,

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...