Sign in to follow this  
Followers 0
sdfg4545

IEAttach, embedded, HWND

5 posts in this topic

I am attempting to interact with a webpage within an IE control (not within an instance of IE)within a window.

I need to I think use IEAttach and embedded, but I cant get it right.

I dont understand what parameters to pass to IEAttach?

Documentation suggest to get a HWND to the control, how can I do that?

Documentation suggests this:

$oIE = _IEAttach ("[REGEXPTITLE:ICQ; INSTANCE:2]", "embedded", 3)

My app runs in a window called "iMedic Explorer".

Window Info: (control within the iMedic app)

>>>> Control <<<<

Class: Internet Explorer_Server

Instance: 1

ClassnameNN: Internet Explorer_Server1

Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1]

ID:

Text:

Share this post


Link to post
Share on other sites



I am attempting to interact with a webpage within an IE control (not within an instance of IE)within a window.

I need to I think use IEAttach and embedded, but I cant get it right.

I dont understand what parameters to pass to IEAttach?

Documentation suggest to get a HWND to the control, how can I do that?

Documentation suggests this:

$oIE = _IEAttach ("[REGEXPTITLE:ICQ; INSTANCE:2]", "embedded", 3)

My app runs in a window called "iMedic Explorer".

Window Info: (control within the iMedic app)

>>>> Control <<<<

Class: Internet Explorer_Server

Instance: 1

ClassnameNN: Internet Explorer_Server1

Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1]

ID:

Text:

Hi,

have a look in the helpfile for example _IECreateEmbedded ().

I think this is, what you want.

;-))

Stefan

Share this post


Link to post
Share on other sites

I think that will not work, doesnt do what I need it to do.

I am not creating an AutoIt GUI.

I am trying to interact with an IE control within an app made be a third party.

Any other ideas?????

Share this post


Link to post
Share on other sites

I think that will not work, doesnt do what I need it to do.

I am not creating an AutoIt GUI.

I am trying to interact with an IE control within an app made be a third party.

Any other ideas?????

Hi,

i see. I misunderstood.

So try

$oIE = _IEAttach ("iMedic Explorer")

;-))

Stefan

Share this post


Link to post
Share on other sites

I just figured it out, this is what I did:

(I now have access to all the links)

WinActivate ("iMedic Explore")

$hWnd = WinGetHandle("[CLASS:WindowsForms10.window.8.app.0.202c666]") ; got this from window info

$oIE = _IEAttach ($hWnd, "embedded")

$oLinks = _IELinkGetCollection ($oIE)

For $oLink In $oLinks

MsgBox(0, "Link Info", $oLink.href)

Next

Thanks

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