Jump to content
Sign in to follow this  
dczarnik

_IEAttach

Recommended Posts

dczarnik

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
dczarnik

#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
dczarnik
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
Danp2

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.