UNPKG

@ahmic/autoit-js

Version:
43 lines (42 loc) 1.54 kB
/** * Retrieves the class list of a window. * * @param windowHandle The handle of the window to access. * @param characterCount The maximum number of characters to retrieve. Default is 1024. * * @returns The class list of the window as a string. * * @example * ```typescript * import { WinGetClassListByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * const classList = WinGetClassListByHandleSync(windowHandle); * * console.log(classList); // Output: "Edit\nButton" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetClassList.htm */ export declare function WinGetClassListByHandleSync(windowHandle: bigint, characterCount?: number): string; /** * Retrieves the class list of a window. * * @param windowHandle The handle of the window to access. * @param characterCount The maximum number of characters to retrieve. Default is 1024. * * @returns A promise that resolves to the class list of the window as a string. * * @example * ```typescript * import { WinGetClassListByHandle, WinGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * const classList = await WinGetClassListByHandle(windowHandle); * * console.log(classList); // Output: "Edit\nButton" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetClassList.htm */ export declare function WinGetClassListByHandle(windowHandle: bigint, characterCount?: number): Promise<string>;