UNPKG

@ahmic/autoit-js

Version:
39 lines (38 loc) 1.34 kB
/** * Sets the transparency level of a window. 0 is fully transparent, 255 is fully opaque. * * @param windowTitle The title of the window. * @param windowText Optional text found in the window. * @param transparency The transparency level (0-255). * * @returns 1 if successful, 0 otherwise. * * @example * ```typescript * import { WinSetTransSync } from '@ahmic/autoit-js'; * * WinSetTransSync('Untitled - Notepad', '', 128); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinSetTrans.htm */ export declare function WinSetTransSync(windowTitle: string, windowText: string | undefined, transparency: number): number; /** * Sets the transparency level of a window. 0 is fully transparent, 255 is fully opaque. * * @param windowTitle The title of the window. * @param windowText Optional text found in the window. * @param transparency The transparency level (0-255). * * @returns A promise that resolves to 1 if successful, or 0 otherwise. * * @example * ```typescript * import { WinSetTrans } from '@ahmic/autoit-js'; * * await WinSetTrans('Untitled - Notepad', '', 128); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinSetTrans.htm */ export declare function WinSetTrans(windowTitle: string, windowText: string | undefined, transparency: number): Promise<number>;