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

    Function WinExistsByHandleSync

    • Checks if a window exists.

      Parameters

      • windowHandle: bigint

        The handle of the window to search for.

      Returns boolean

      True if the window exists, false otherwise.

      import { WinExistsByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';

      const handle = WinGetHandleSync('Untitled - Notepad');
      const exists = WinExistsByHandleSync(handle);

      console.log(exists); // Output: true or false