sdfg4545 Posted October 13, 2009 Share Posted October 13, 2009 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 More sharing options...
99ojo Posted October 13, 2009 Share Posted October 13, 2009 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 More sharing options...
sdfg4545 Posted October 13, 2009 Author Share Posted October 13, 2009 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????? Link to comment Share on other sites More sharing options...
99ojo Posted October 13, 2009 Share Posted October 13, 2009 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 More sharing options...
sdfg4545 Posted October 13, 2009 Author Share Posted October 13, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now