win32: internet explorer automation problem
John J. Lee
jjl at pobox.com
Thu Jan 8 13:33:57 EST 2004
"mic" <aldo123 at onet.pl> writes:
> I'm currently trying to write an MSIE automation software and have run into
> such problem - have no idea how to take control of external popup windows -
> I use WebBrowser COM object and am able to catch the NewWindow2 event, but
> don't know how to change 'focus' to other than main explorer window. I tried
[...]
I guess you just need to use the usual browser object model (the one
exposed to JavaScript &c.) -- eg. window.focus(), window.blur().
IIRC, it's IHTMLDocument2, or similar, that you want.
John
More information about the Python-list
mailing list