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

    Function ControlTreeView

    • Interacts with a tree view 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 tree view control to interact with.

      • command: TreeViewCommand

        The command to send to the tree view control.

      • option1: string = ''

        Optional parameter for the command.

      • option2: string = ''

        Optional parameter for the command.

      • characterCount: number = 1024

      Returns string

      The result of the command as a string.

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

      const result = ControlTreeView('Untitled - Notepad', '', 'SysTreeView32', 'GetItemCount');

      console.log(result); // Output: "5"