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.

1 Answer 1

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.
Sign up to request clarification or add additional context in comments.

1 Comment

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_Tutorial

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.