Function WinExistsByHandle

  • 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 { WinExistsByHandle, WinGetHandle } from '@ahmic/autoit-js';

    const handle = WinGetHandle('Untitled - Notepad');
    const exists = WinExistsByHandle(handle);

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