Processing Ajax...

Close Dialog


Close Dialog

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.

Open Website in Default Web Browser and Maximize on Specific Monitor

This function will open a website in the default browser, then move it to a specific monitor and maximize it. Edit the website and targetMonitor variables near the top of the function.
Minimum Version
Created By
Keith Lammers (BFS)
Date Created
Apr 10, 2017
Date Last Modified
Apr 10, 2017

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
	public static void Run(IntPtr windowHandle)
		// Set your website and target monitor ID here
		string website = "";
		uint targetMonitor = 2;
		// Open the website window
		IntPtr window = BFS.Web.OpenUrlNewWindow(website);
		// Move it to the specified monitor
		BFS.Window.MoveToMonitorMaximized(targetMonitor, window);