using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
//update these two strings with the desired websites (add websiteMonitor3, etc if you have more than 2 monitors, and copy/update the monitor 2 code block for each additional monitor)
string websiteMonitor1 = "https://www.displayfusion.com";
string websiteMonitor2 = "https://www.checkcentral.cc";
//Open websiteMonitor1 on monitor 1 in kiosk mode (edit the monitor ID in the BFS.Window.MoveToMonitor function if needed)
BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "-kiosk -new-window " + websiteMonitor1);
BFS.General.ThreadWait(2000);
windowHandle = BFS.Window.GetFocusedWindow();
BFS.Window.MoveToMonitor(1, windowHandle);
BFS.General.ThreadWait(1000);
//Open websiteMonitor2 on monitor 2 in kiosk mode (edit the monitor ID in the BFS.Window.MoveToMonitor function if needed)
BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "-kiosk -new-window " + websiteMonitor2);
BFS.General.ThreadWait(2000);
windowHandle = BFS.Window.GetFocusedWindow();
BFS.Window.MoveToMonitor(2, windowHandle);
}
}