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

    Function ControlSend

    • Sends a string of text to 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 send text to.

      • value: string

        The string of text to send.

      • mode: SendMode = SendMode.Default

        The send mode to use. See SendMode for details. Default is SendMode.Default.

      Returns number

      1 if successful, 0 otherwise.

      import { ControlSend, SendMode } from '@ahmic/autoit-js';

      ControlSend('Untitled - Notepad', '', 'Edit1', 'Hello, World!', SendMode.Default);