using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Set the websites for monitor 1 here string[] websitesMonitor1 = { "https://google.com", }; // Launch and move the browser windows LaunchAndMoveBrowser(0, websitesMonitor1); } private static void LaunchAndMoveBrowser(uint monitorID, string[] websites) { // Build the command-line arguments string args = string.Join(" ", websites, 0, websites.Length); args += " --new-window"; // Launch the browser uint appID= BFS.Application.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe", args); BFS.General.ThreadWait(2000); IntPtr wh=BFS.Application.GetMainWindowByAppID(appID); // Move the window //BFS.Window.MoveToMonitorMaximized(monitorID, BFS.Window.GetFocusedWindow()); BFS.Window.MoveToMonitor(monitorID, wh); BFS.Window.SetSizeAndLocation(wh, -1431, 707, 1431, 1291); } }