@ahmic/autoit-js
    Preparing search index...

    Function WinSetTransByHandleSync

    • Sets the transparency level of a window. 0 is fully transparent, 255 is fully opaque.

      Parameters

      • windowHandle: bigint

        The handle of the window.

      • transparency: number

        The transparency level (0-255).

      Returns number

      1 if successful, 0 otherwise.

      import { WinSetTransByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';

      const windowHandle = WinGetHandleSync('Untitled - Notepad');

      WinSetTransByHandleSync(windowHandle, 128);