Sets the transparency level of a window. 0 is fully transparent, 255 is fully opaque.
The handle of the window.
The transparency level (0-255).
1 if successful, 0 otherwise.
import { WinSetTransByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';const windowHandle = WinGetHandleSync('Untitled - Notepad');WinSetTransByHandleSync(windowHandle, 128); Copy
import { WinSetTransByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';const windowHandle = WinGetHandleSync('Untitled - Notepad');WinSetTransByHandleSync(windowHandle, 128);
https://www.autoitscript.com/autoit3/docs/functions/WinSetTrans.htm
Sets the transparency level of a window. 0 is fully transparent, 255 is fully opaque.