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

    Function ProcessWait

    • Waits for a process to exist.

      Parameters

      • process: string

        The name of the process to wait for.

      • timeout: number = 0

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

      Returns Promise<number>

      A promise that resolves to 1 if the process exists, or 0 if the timeout is reached.

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

      await ProcessWait('notepad.exe', 10);