win32event.WaitForInputIdle

int = WaitForInputIdle(hProcess, milliseconds )

Waits until the given process is waiting for user input with no input pending, or until the time-out interval has elapsed

Parameters

hProcess : PyHANDLE

handle of process to wait for

milliseconds : int

time-out interval in milliseconds

Return Value

The return value indicates wether the process is ready or wether it timed out. This value can be one of the following.

Value Meaning
0The process is ready.
WAIT_TIMEOUTThe time-out interval elapsed, and the process is not ready.