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

    Function WinActive

    • Checks if a window is currently active.

      Parameters

      • windowTitle: string

        The title of the window to check.

      • windowText: string = ''

        Optional text found in the window.

      Returns number

      1 if the window is active, 0 otherwise.

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

      const isActive = WinActive('Untitled - Notepad');

      console.log(isActive); // Output: 1