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?

Open Chrome on 2 Monitors

Description
This script will open two Chrome windows with different websites on monitors 1 and 2. To add another monitor, make sure to add a new string at the top of the script for website3, and then copy/paste one of the functions, making sure to change the monitor ID to 3 in the BFS.Window.MoveToMonitorMaximized function.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Nov 20, 2015
Date Last Modified
Nov 20, 2015

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
		// Update the URLs in the strings below
		string website1 = "https://www.displayfusion.com";
		string website2 = "https://www.fileseek.ca";
				
		// Open website1 on monitor 1
		windowHandle = BFS.Web.OpenUrlNewWindow(website1);
		BFS.General.ThreadWait(2000);
		BFS.Window.MoveToMonitorMaximized(1, windowHandle);
		
		// Open website2 on monitor 2
		windowHandle = BFS.Web.OpenUrlNewWindow(website2);
		BFS.General.ThreadWait(2000);
		BFS.Window.MoveToMonitorMaximized(2, windowHandle);
	}
}