win-opacity
Read and write the opacity values of windows on the Windows operating system.
Example
const winOpacity = ;const windows = winOpacity;for const win of windows console; // Title on the window const opacity = winOpacity; // Make the window slightly more transparent winOpacity;
Type Definitions
Definitions given in TypeScript format.
;;
API
getWindows() -> NativeWindow[]
- Gets all visible windows
getOpacity(window: WindowHandle | NativeWindow) -> number
- Returns the opacity of a window. The value will be in the range of [0-255]
setOpacity(window: WindowHandle | NativeWindow, opacity: number) -> void
- Sets the opacity of a window.
opacity
must be in the range of [0-255]
- Sets the opacity of a window.