win32event.MsgWaitForMultipleObjects

int = MsgWaitForMultipleObjects(handleList, bWaitAll , milliseconds , wakeMask )

Returns when a message arrives of an event is signalled

Parameters

handleList : [PyHANDLE, ...]

A sequence of handles to wait on.

bWaitAll : bool

If true, waits for all handles in the list.

milliseconds : int

time-out interval in milliseconds

wakeMask : int

type of input events to wait for. One of the win32event.QS_ constants.

Comments

Note that if bWaitAll is TRUE, the function will return when there is input in the queue, and all events are signalled. This is rarely what you want! If input is waiting, the result is win32event.WAIT_OBJECT_0+len(handles))