6

I'm surprised to see that there is not a lot of explained documentation on the function pythoncom.PumpMessages(), or for the pythoncom module.

So what does pythoncom.PumpMessages() and pythoncom.PumpWaitingMessages()do and how? All I really know about it is used for catching events from input devices.

Brent Worden
  • 10,624
  • 7
  • 52
  • 57
user3818650
  • 581
  • 1
  • 7
  • 19

1 Answers1

3

The documentation on these methods can be found here.

The relevant bits are:

  • PumpWaitingMessages: Pumps all waiting messages for the current thread.
  • PumpMessages: Pumps all messages for the current thread until a WM_QUIT message.
da Vinci
  • 131
  • 11
  • This isn't super helpful. Not sure what a 'waiting message' is or a 'WM_QUIT'. Microsoft really needs to do better on documenting this. This website does better to provide examples of how to use this function & what it actually does: https://sourceforge.net/p/pyhook/wiki/PyHook_Tutorial/ – Gunner Stone Nov 24 '20 at 01:10