[python-win32] Query and remove all IEBrowsers

George Flaherty George.Flaherty at sas.com
Thu Jan 5 22:15:11 CET 2006


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:niki at vintech.bg] 
Sent: Thursday, January 05, 2006 12:46 PM
To: George Flaherty
Cc: python-win32 at python.org
Subject: Re: [python-win32] Query and remove all IEBrowsers

George Flaherty wrote:

> 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 tools.

You can enumerate top level windows and send WM_CLOSE to IE ones.

Niki Spahiev


More information about the Python-win32 mailing list