Sign in to follow this  
Followers 0
MrTWist

How to grab ahold of Internet Explorer_Server1 control

3 posts in this topic

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 work

MsgBox(1, "Window handle", $oIE) ;works

MsgBox(1, "IE Server Handle", $oIEhdl) ;works

MsgBox(1, "Attach result", $IEattachResult) ; doesn't work

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 here

Dale

Edited 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

Share this post


Link to post
Share on other sites

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

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