[python-win32] Unable to close Excel, error in dynamic.py

2006-02-08 Thread George Flaherty
I have been messing around Excel, but when I run the following example I get an error? Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. from win32com.client import Dispatch xlApp =

[python-win32] Query and remove all IEBrowsers

2006-01-05 Thread George Flaherty
Is it possible with python/win32 to query and remove all running internet explorers (ie browsers)? I have an automation package that requires no existing internet explorers to be running. So I would like to call a python/win32 script to close out any ie browser windows, then run the automation

Re: [python-win32] Query and remove all IEBrowsers

2006-01-05 Thread George Flaherty
Okay I figured out all the ides of all the IE Browser windows (thanks), but now how do I send the WM_CLOSE to each id? thanks george -Original Message- From: Niki Spahiev [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 12:46 PM To: George Flaherty Cc: python-win32

Re: [python-win32] Query and remove all IEBrowsers

2006-01-05 Thread George Flaherty
) win32gui.SendMessage(i,win32con.WM_CLOSE,0,0) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Flaherty Sent: Thursday, January 05, 2006 4:15 PM Cc: python-win32@python.org Subject: Re: [python-win32] Query and remove all IEBrowsers