Function ControlDisable

  • Disables a control in a window.

    Parameters

    • windowTitle: string

      The title of the window to access.

    • windowText: string

      Optional text found in the window.

    • controlId: string

      The ID of the control to disable.

    Returns number

    1 if success, 0 if failure.

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

    ControlDisable('Untitled - Notepad', 'Edit1');