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

    Function WinKillByHandle

    • Forces a window to close.

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

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