Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Set transparency of all windows to 100 (non-transparent)

Description
This script will disable transparency on all open windows.
Language
C#.net
Minimum Version
Created By
Jakob Hirsinger52173
Contributors
-
Date Created
Jul 3, 2020
Date Last Modified
Jul 3, 2020

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
        // Get all windows handles of every window currently open
        IntPtr[] handles = BFS.Window.GetAllWindowHandles();
        
        // Loop through all windows
        foreach (IntPtr window in handles)
        {
            // Check if a window is transparent
            if (BFS.Window.GetTransparency(window) < 100)
            {
                // Set transparency to 100
                BFS.Window.SetTransparency(window, 100);
            }
         }
	}
}