I'm using "win32com" while doing Python I looked at the examples and found that pythoncom is also used together. What is pythoncom?
python
Before that, we need to learn and understand a little about COM, OLE, and ACTIVEX.
Pythoncom is a module that collects the utility functions needed to use the win32com package.
I think CoInitialize, PumpWaitingMessages are the most commonly used functions
When using COM in a thread, it must be the pythoncom CoInitialize function, and PumpWaitingMessages is used to wait for messages.
The key point is that understanding COM is essential to properly use win32com.
© 2024 OneMinuteCode. All rights reserved.