Help me. How to open a new IE window?

angel dai4happy at yahoo.com
Sat May 8 10:11:53 EDT 2004


It's work. Thanx again!
angel

"Dave Brueck" <dave at pythonapocrypha.com>
??????:mailman.355.1084020373.25742.python-list at python.org...
> angel wrote:
> > I want python(win32com) to open a new IE window.
> > Source is:
> > /******/
> > import win32com.client
> > msie = win32com.client.Dispatch("InternetExplorer.Application")
> > msie.Visible = 1
> > msie.Naviagte(http://www.python.org)
> > /******/
> > The problem is the program always grabs a existed IExplorer window or
> > Explorer window. It never opens a new window.
>
> I ran into that same problem. Try this:
>
> msie = win32com.client.DispatchEx('InternetExplorer.Application.1')
>
> It seems to work for me.
>
> -Dave
>





More information about the Python-list mailing list