hi,
i am working on outlook automation , in my code i am using
dispatchwithevents method for capturing events of outlook as newmail
,itemsend .The code works fine in command line but after converting it into
exe file using py2exe ,the generated exe file crashes .
I am not using dispatch for generating object of outlook because i have to
do event handling.
here is my code
/////
import time, win32event, win32com.client, pythoncom
class xlEv:
def OnNewMailEx(self,entry):
print 'event happened'
xl=win32com.client.DispatchWithEvents("Outlook.Application", xlEv)
i = input    #waiting till event captured
 /////

Thanks
Umesh Kumar Sharma
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to