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

    Function WinKillByHandleSync

    • Forces a window to close.

      Parameters

      • windowHandle: bigint

        The handle of the window to close.

      Returns number

      1 if successful, 0 otherwise.

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

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