Function ControlGetHandle

  • Gets the handle of a control in a window.

    Parameters

    • windowHandle: bigint

      The handle of the window to access.

    • controlId: string

      The control to get the handle of.

    Returns bigint

    The handle of the control.

    import { ControlGetHandle, WinGetHandle } from '@ahmic/autoit-js';

    const windowHandle = WinGetHandle('Untitled - Notepad');
    const controlHandle = ControlGetHandle(windowHandle, 'Edit1');

    console.log(controlHandle); // Output: 0x0000000000000001
MMNEPVFCICPMFPCPTTAAATR