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

    Function ControlGetHandleAsText

    • Gets the handle of a control in a window as a hexadecimal string.

      Parameters

      • windowTitle: string

        The title of the window to access.

      • windowText: string = ''

        Optional text found in the window.

      • controlId: string

        The control to get the handle for.

      Returns string

      The handle of the control as a hexadecimal string.

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

      const handle = ControlGetHandleAsText('Untitled - Notepad', '', 'Edit1');

      console.log(handle); // Output: "0x0000000000000001"