Waits for a process to close.
The name of the process to wait for.
The timeout in seconds. Default is 0 (wait indefinitely).
1 if the process closes, 0 if the timeout is reached.
import { ProcessWaitClose } from '@ahmic/autoit-js';ProcessWaitClose('notepad.exe', 10); Copy
import { ProcessWaitClose } from '@ahmic/autoit-js';ProcessWaitClose('notepad.exe', 10);
https://www.autoitscript.com/autoit3/docs/functions/ProcessWaitClose.htm
Waits for a process to close.