@ahmic/autoit-js
    Preparing search index...

    Function ProcessWaitClose

    • Waits for a process to close.

      Parameters

      • process: string

        The name of the process to wait for.

      • timeout: number = 0

        The timeout in seconds. Default is 0 (wait indefinitely).

      Returns number

      1 if the process closes, 0 if the timeout is reached.

      import { ProcessWaitClose } from '@ahmic/autoit-js';

      ProcessWaitClose('notepad.exe', 10);