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

    Function WinCloseByHandle

    • Closes a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to close.

      Returns Promise<number>

      A promise that resolves to 1 if successful, or 0 otherwise.

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

      const handle = await WinGetHandle('Untitled - Notepad');
      await WinCloseByHandle(handle);