[python-win32] Detect when the user launches or closes a program?

Tim Golden mail at timgolden.me.uk
Tue Nov 20 10:14:43 CET 2007


Patrick Li wrote:
> Hi,
> 
> I am trying to write a program that will perform some operation on the
> user's computer when the user launches a particular executable(s) on the
> computer and when the user closes them.

To a limited extent you can do this with WMI. Have a look
here for an example:

http://timgolden.me.uk/python/wmi_cookbook.html#watch_notepad

TJG



More information about the python-win32 mailing list