Retrieving all open applications ...

Gabriel Genellina gagsl-py2 at
Wed Oct 31 01:17:57 CET 2007

En Tue, 30 Oct 2007 06:20:10 -0300, Ajay Deshpande  
<garlictrompet at> escribió:

> I need to retrieve all currently open applications using a python  
> program.
> So my output should be a list of window handles. Is there a module which  
> I
> can use?

"applications" or "windows"? You can use the EnumWindows function, from  
the Windows API, to enumerate all  top level windows. See this article  
 from the Microsoft Knowledge Base <>  
(the example is in VB but I hope you get the idea)

Install the pywin32 extensions from Mark Hammond and you'll have the EnumWindows function  

Gabriel Genellina

More information about the Python-list mailing list