Function ControlHideByHandle

  • Hides a control in a window.

    Parameters

    • windowHandle: bigint

      The handle of the window to access.

    • controlHandle: bigint

      The handle of the control to hide.

    Returns number

    1 if success, 0 if failure.

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

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

    ControlHideByHandle(windowHandle, controlHandle);