Re: [python-win32] How to correctly handle events using win32com ?

2024-11-30 Thread Gauthier ABRIAL
Thanks a lot, that explanation is very useful ! Regards, G. Téléchargez Outlook pour iOS<https://aka.ms/o0ukef> De : David Sansom Envoyé : Saturday, November 30, 2024 2:56:02 PM À : Gauthier ABRIAL Cc : [email protected] Objet : Re: [python-win32]

Re: [python-win32] How to correctly handle events using win32com ?

2024-11-30 Thread Gauthier ABRIAL
ving it) is still unclear to me but I have a workable solution and I know that the way I use win32com seems to make sense (nobody gave me any pushback here on the way I use it). Thanks a lot everybody. G. De : David Sansom Envoyé : 30 novembre 2024 05:04 À : Gauthier

Re: [python-win32] How to correctly handle events using win32com ?

2024-11-29 Thread Gauthier ABRIAL
De : Mark Hammond Envoyé : 29 novembre 2024 14:10 À : Gauthier ABRIAL ; [email protected] Objet : Re: [python-win32] How to correctly handle events using win32com ? It's been a while since I've done any of this, but I think there's an "xlApp.Quit()" method you

[python-win32] How to correctly handle events using win32com ?

2024-11-29 Thread Gauthier ABRIAL
Hello, I'm looking for some advice on how to correctly handle events using win32com. If I take the example of a very simple Excel automation, I tested two things. * Code1 below use pythoncom.PumpMessages() but I don't know how to stop it when the Excel is closing. I guess I should send a WM_QU