Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

Open Website in Default Web Browser and Maximize on Specific Monitor

Description
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.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
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 = "https://www.displayfusion.com";
		uint targetMonitor = 2;
		
		// Open the website window
		IntPtr window = BFS.Web.OpenUrlNewWindow(website);
		
		// Move it to the specified monitor
		BFS.Window.MoveToMonitorMaximized(targetMonitor, window);
	}
}