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

    Function WinKill

    • Forces a window to close.

      Parameters

      • windowTitle: string

        The title of the window to close.

      • windowText: string = ''

        Optional text found in the window.

      Returns Promise<number>

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

      import { WinKill } from '@ahmic/autoit-js';

      await WinKill('Untitled - Notepad');