Jump to content

How to grab ahold of Internet Explorer_Server1 control


MrTWist
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

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