Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

A recent AVG and Avast antivirus update is preventing DisplayFusion 9.9 from launching on some systems.
If you're running into this issue, please update to the latest DisplayFusion 10.0 Beta.

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);
            }
         }
	}
}