First, you create a class that implements the event methods as detailed in the comments. Then you use win32com.client.DispatchWithEvents to create the object and hook the events to your class.
hth Roger _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32