@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
43 lines (42 loc) • 1.48 kB
TypeScript
/**
* Shows a control in a window.
*
* @param windowHandle The handle of the window to access.
* @param controlHandle The handle of the control to show.
*
* @returns 1 if success, 0 otherwise.
*
* @example
* ```typescript
* import { ControlShowByHandleSync, ControlGetHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';
*
* const windowHandle = WinGetHandleSync('Untitled - Notepad');
* const controlHandle = ControlGetHandleSync(windowHandle, 'Edit1');
*
* ControlShowByHandleSync(windowHandle, controlHandle);
* ```
*
* @see https://www.autoitscript.com/autoit3/docs/functions/ControlShow.htm
*/
export declare function ControlShowByHandleSync(windowHandle: bigint, controlHandle: bigint): number;
/**
* Shows a control in a window.
*
* @param windowHandle The handle of the window to access.
* @param controlHandle The handle of the control to show.
*
* @returns A promise that resolves to 1 if successful, or 0 otherwise.
*
* @example
* ```typescript
* import { ControlShowByHandle, ControlGetHandle, WinGetHandle } from '@ahmic/autoit-js';
*
* const windowHandle = await WinGetHandle('Untitled - Notepad');
* const controlHandle = await ControlGetHandle(windowHandle, 'Edit1');
*
* await ControlShowByHandle(windowHandle, controlHandle);
* ```
*
* @see https://www.autoitscript.com/autoit3/docs/functions/ControlShow.htm
*/
export declare function ControlShowByHandle(windowHandle: bigint, controlHandle: bigint): Promise<number>;