Sign in to follow this  
Followers 0
dczarnik

_IEAttach

5 posts in this topic

Very basic question that I have been looking all over for and haven't been able to find an answer to...

How in the hell do I use the IE API with an EXISTING Internet Explorer window? 

It's not making sense to me.

I tried using IE attach but that does not seem to be working.

Share this post


Link to post
Share on other sites



A. Was there an error message shown in the Scite output window?

B. Did you try running the examples from the help file?

Share this post


Link to post
Share on other sites

#include <IE.au3>
#include <MsgBoxConstants.au3>

; Attach to a browser control embedded in another window


Local $oIE = _IEAttach("http://google.com", "")
Local $sHTML = _IEDocReadHTML($oIE)
MsgBox($MB_SYSTEMMODAL, "Document Source", $sHTML)

 

 

 

I run this and message box returns 0.

Share this post


Link to post
Share on other sites
1 hour ago, Danp2 said:

A. Was there an error message shown in the Scite output window?

B. Did you try running the examples from the help file?

#include <IE.au3>
#include <MsgBoxConstants.au3>

; Attach to a browser control embedded in another window


Local $oIE = _IEAttach("http://google.com", "")
Local $sHTML = _IEDocReadHTML($oIE)
MsgBox($MB_SYSTEMMODAL, "Document Source", $sHTML)

 

 

 

I run this and message box returns 0.

Share this post


Link to post
Share on other sites

You didn't answer either of my questions. :blink:

Quote

; Attach to a browser control embedded in another window

Again the details are important. Read the help file entry for _IEAttach, particularly to portions dealing with embedded IE instances.

Share this post


Link to post
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
Sign in to follow this  
Followers 0