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

    Function WinSetState

    • Changes the state of a window.

      Parameters

      • windowTitle: string

        The title of the window.

      • windowText: string = ''

        Optional text found in the window.

      • flags: StateFlag

        The state flags to apply. See StateFlag for details.

      Returns number

      1 if successful, 0 otherwise.

      import { WinSetState, StateFlag } from '@ahmic/autoit-js';

      WinSetState('Untitled - Notepad', '', StateFlag.Minimize);