MrTWist Posted January 30, 2007 Share Posted January 30, 2007 I'm trying to programmatically get a hold on the Internet Explorer_Server1 control embedded in in the Google Updater UI.Google Updater is available at http://pack.google.com/I can get the handle of the control -- but then what? Any ideas how I could send clicks and tabs and text select/copy commands to it?CODE#include <IE.au3> $oIE = WinGetHandle("Google Updater") ; can get a handle to the container$oIEhdl = ControlGetHandle ( "Google Updater", "", "Internet Explorer_Server1") ; can get a handle to the control$IEattachResult = _IEAttach($oIE, $oIE) ; doesn't workMsgBox(1, "Window handle", $oIE) ;worksMsgBox(1, "IE Server Handle", $oIEhdl) ;worksMsgBox(1, "Attach result", $IEattachResult) ; doesn't work Link to comment Share on other sites More sharing options...
DaleHohm Posted January 30, 2007 Share Posted January 30, 2007 (edited) Assuming that Google Updater is an Win32 App with an embedded browser, what you want is:$oIE = _IEAttach("Google Updater", "embedded")Unfortunately, an AutoIt regression in 3.2.2.0 causes the "embedded" option to throw an error. There is a very simple workaround for this, requiring an edit of IE.au3 hereDale Edited January 30, 2007 by DaleHohm Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
MrTWist Posted January 30, 2007 Author Share Posted January 30, 2007 Thank you, Dale! You're a hero! Assuming that Google Updater is an Win32 App with an embedded browser, what you want is: $oIE = _IEAttach("Google Updater", "embedded") Unfortunately, an AutoIt regression in 3.2.2.0 causes the "embedded" option to throw an error. There is a very simple workaround for this, requiring an edit of IE.au3 here Dale 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