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?

Mirror monitor 1 and maximize mirror window on monitor 2

Description
This script will open a new mirror window for monitor 1, then maximize it on monitor 2.
Language
C#.net
Minimum Version
Created By
Vasco Moura Esteves
Contributors
-
Date Created
Apr 23, 2021
Date Last Modified
Apr 23, 2021

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr MirrorMonitor)
	{
		// Mirror the monitor and move it		
		IntPtr mirrorMonitor = BFS.DisplayFusion.MirrorMonitor(1);
		BFS.Window.MoveToMonitorMaximized(2, mirrorMonitor);
	}
}