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

    Function WinCloseByHandleSync

    • Closes a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to close.

      Returns number

      1 if successful, 0 otherwise.

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

      const handle = WinGetHandleSync('Untitled - Notepad');
      WinCloseByHandleSync(handle);