_WinAPI_WaitForInputIdle
Waits until a process is waiting for user input with no input pending, or a time out
#include <WinAPI.au3>
_WinAPI_WaitForInputIdle($hProcess [, $iTimeout = -1])
Параметры
$hProcess | A handle to the process. If this process is a console application or does not have a message queue, this function returns immediately. |
$iTimeOut |
[необязательный] The time out interval, in milliseconds. If set to -1, the function does not return until the process is idle. |
Возвращаемое значение
Успех: | Возвращает True |
Ошибка: | Возвращает False |
Примечания
This function causes a thread to suspend execution until the specified process has finished its initializationСм. также
Искать WaitForInputIdle в библиотеке MSDN