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

    Function WinWaitByHandle

    • Waits for a window to exist.

      Parameters

      • windowHandle: bigint

        The handle of the window to wait for.

      • timeout: number = 0

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

      Returns number

      1 if the window exists, 0 if the timeout is reached.

      import { WinWaitByHandle, WinGetHandle } from '@ahmic/autoit-js';

      const handle = WinGetHandle('Untitled - Notepad');
      WinWaitByHandle(handle, 10);