using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Set the URLs for each browser window here string[] browser1URLs = { "https://www.displayfusion.com", "https://www.clipboardfusion.com" }; string[] browser2URLs = { "https://www.fileseek.ca", "https://www.voicebot.net" }; // Launch browser window 1 string browser1Parameters = "--new-window "; foreach (string URL in browser1URLs) { browser1Parameters = browser1Parameters + URL + " "; } BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", browser1Parameters); BFS.General.ThreadWait(1000); BFS.Window.MoveToMonitor(1, BFS.Window.GetFocusedWindow()); // Launch browser window 2 string browser2Parameters = "--new-window "; foreach (string URL in browser2URLs) { browser2Parameters = browser2Parameters + URL + " "; } BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", browser2Parameters); BFS.General.ThreadWait(1000); BFS.Window.MoveToMonitor(2, BFS.Window.GetFocusedWindow()); } }