H!
I using a script that opens a internet page in a small window (what I
can control)
In XP everything was working fine, but now I'm using Vista with IE7
and this is what happends now:
First a small window opens at the postion x0 y0 (like I want) but then
IE thinks "Hey lets open a other main window too".
And that window opens the url 'http://www.google.nl'
It seems that I can't control/use my first window anymore, and that
IE7/vista is forcing to open it in a big new window.
The code below is what I'm using.
def webbrowser(url= None):
import pythoncom
from win32com.client import Dispatch
ie = pythoncom.CoCre ateInstance("In ternetExplorer. Application",
None,pythoncom. CLSCTX_SERVER,p ythoncom.IID_ID ispatch)
ie = Dispatch(ie)
ie.Top = 0.0
ie.Left = 0.0
ie.Height = 400
ie.Width = 400
ie.AddressBar = False
ie.MenuBar = False
ie.Resizable = False
ie.StatusBar = False
ie.ToolBar = False
ie.Visible = 1
return ie
w = webbrowser()
w.Navigate('htt p://www.google.nl')
--
ow and why can't I find a pythoncom.CoCre ateInstance.Fir eFox example ?
Thanks for helping.
I using a script that opens a internet page in a small window (what I
can control)
In XP everything was working fine, but now I'm using Vista with IE7
and this is what happends now:
First a small window opens at the postion x0 y0 (like I want) but then
IE thinks "Hey lets open a other main window too".
And that window opens the url 'http://www.google.nl'
It seems that I can't control/use my first window anymore, and that
IE7/vista is forcing to open it in a big new window.
The code below is what I'm using.
def webbrowser(url= None):
import pythoncom
from win32com.client import Dispatch
ie = pythoncom.CoCre ateInstance("In ternetExplorer. Application",
None,pythoncom. CLSCTX_SERVER,p ythoncom.IID_ID ispatch)
ie = Dispatch(ie)
ie.Top = 0.0
ie.Left = 0.0
ie.Height = 400
ie.Width = 400
ie.AddressBar = False
ie.MenuBar = False
ie.Resizable = False
ie.StatusBar = False
ie.ToolBar = False
ie.Visible = 1
return ie
w = webbrowser()
w.Navigate('htt p://www.google.nl')
--
ow and why can't I find a pythoncom.CoCre ateInstance.Fir eFox example ?
Thanks for helping.
Comment