Jump to content

IEAttach, embedded, HWND


 Share

Recommended Posts

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:

Link to comment
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

Link to comment
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

Link to comment
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

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...