469,343 Members | 5,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

get an object from a hWnd

I have an application that creates (Createobject) an
'Internetexplorer.application" window, and then monitors clicks until a
link is clicked that corresponds to a specific pattern. Running this App
always creates a new instance of internet explorer.

I can also use GetObject to get an object corresponding to a running
internet explorer app. However, I don't know how to know which instance of
the explorer I am monitoring if more than one were open.

What would be the best approach to make sure that I can capture the events
of the internet explorer instance that the user is actually working with ?

I was thinking that I'd have to find the topmost window, and in some way
extract the "internet.application" COM object that corresponds to that
hWnd. I however have no idea if such a thing is possible.

Any ideas or even code for an approach to monitor clicks on _any_ instance
of internet explorer ?

Jan
Jul 17 '05 #1
0 7640

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by talljames | last post: by
3 posts views Thread by Andrew Moore | last post: by
5 posts views Thread by JoeC | last post: by
1 post views Thread by prithvis.mohanty | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.