using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Set the monitor number uint rightMonNumber = 401; // Get all window handles IntPtr[] windows = BFS.Window.GetAllWindowHandles(); // Loop through the window handles and move any that belong to chrome.exe foreach (IntPtr window in windows) { if (BFS.Application.GetMainFileByWindow(window).Contains("chrome.exe")) BFS.Window.MoveToMonitor(rightMonNumber, window); } } }