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

    Function WinSetTransByHandle

    • 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 Promise<number>

      A promise that resolves to 1 if successful, or 0 otherwise.

      import { WinSetTransByHandle, WinGetHandle } from '@ahmic/autoit-js';

      const windowHandle = await WinGetHandle('Untitled - Notepad');

      await WinSetTransByHandle(windowHandle, 128);