UNPKG

@ahmic/autoit-js

Version:
43 lines (42 loc) 1.46 kB
/** * Retrieves the class list of a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * @param characterCount The size of the buffer to store the result. * * @returns The class list of the window as a string. * * @example * ```typescript * import { WinGetClassListSync } from '@ahmic/autoit-js'; * * const classList = WinGetClassListSync('Untitled - Notepad'); * * console.log(classList); // Output: "Edit\nButton" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetClassList.htm */ export declare function WinGetClassListSync(windowTitle: string, windowText?: string, characterCount?: number): string; /** * Retrieves the class list of a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * @param characterCount The size of the buffer to store the result. * * @returns A promise that resolves to the class list of the window as a string. * * @example * ```typescript * import { WinGetClassList } from '@ahmic/autoit-js'; * * const classList = await WinGetClassList('Untitled - Notepad'); * * console.log(classList); // Output: "Edit\nButton" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetClassList.htm */ export declare function WinGetClassList(windowTitle: string, windowText?: string, characterCount?: number): Promise<string>;