wensi liu wrote: > > I am a novice of Python. > > I tried writing code for handle IE but failed. > > I list simple code below: > > import win32com.client > import win32api > import win32gui > ie = win32com.client.Dispatch('InternetExplorer.Application') > ie.Navigate('www.msn.com <http://www.msn.com>') > ie.Visible = 1 > while ie.Busy == True:
That would be better written as: while ie.Busy: > m = win32gui.GetMenu(ie.HWND) > > However, function GetMeun() return 0. Right. That's because Internet Explorer does not have a main menu in the traditional Windows API sense. Instead, it creates a whole series of movable "toolbars", one of which happens to look like a menu. What are you actually trying to do? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32