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

    Function ControlDisableByHandle

    • Disables a control in a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to access.

      • controlHandle: bigint

        The handle of the control to disable.

      Returns Promise<number>

      A promise that resolves to 1 if success, or 0 if failure.

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

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

      await ControlDisableByHandle(windowHandle, controlHandle);