UNPKG

@ahmic/autoit-js

Version:
39 lines (38 loc) 1.24 kB
/** * Disables a control in a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * @param controlId The ID of the control to disable. * * @returns 1 if success, 0 if failure. * * @example * ```typescript * import { ControlDisableSync } from '@ahmic/autoit-js'; * * ControlDisableSync('Untitled - Notepad', 'Edit1'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlDisable.htm */ export declare function ControlDisableSync(windowTitle: string, windowText: string, controlId: string): number; /** * Disables a control in a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * @param controlId The ID of the control to disable. * * @returns A promise that resolves to 1 if success, or 0 if failure. * * @example * ```typescript * import { ControlDisable } from '@ahmic/autoit-js'; * * await ControlDisable('Untitled - Notepad', 'Edit1'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlDisable.htm */ export declare function ControlDisable(windowTitle: string, windowText: string, controlId: string): Promise<number>;