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

    Function WinWaitNotActiveByHandle

    • Waits for a window to become inactive.

      Parameters

      • windowHandle: bigint

        The handle of the window to wait for.

      • timeout: number = 0

        The timeout in seconds. Defaults to 0 (wait indefinitely).

      Returns number

      1 if the window becomes inactive, 0 if the timeout is reached.

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

      const windowHandle = WinGetHandle('Untitled - Notepad');

      WinWaitNotActiveByHandle(windowHandle, 10);