Python - pythoncom.PumpMessages()
Asked Answered
N

1

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.

Naidanaiditch answered 7/6, 2015 at 9:15 Comment(0)
M
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.
Manhood answered 18/8, 2015 at 1:5 Comment(1)
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: sourceforge.net/p/pyhook/wiki/PyHook_TutorialRoehm

© 2022 - 2024 — McMap. All rights reserved.