using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run() { // Get all window handles IntPtr[] windowHandles = BFS.Window.GetAllWindowHandles(); // Loop through the window handles and if their title contains *all subreddits*Waterfox* or *Inbox*Waterfox*, move them to monitor 3 and maximize foreach (IntPtr window in windowHandles) { string windowTitle = BFS.Window.GetText(window); if (windowTitle.Contains("Engineering") && windowTitle.Contains("Summary")) BFS.Window.MoveToMonitorMaximized(3, window); if (windowTitle.Contains("Internet") && windowTitle.Contains("Explorer")) BFS.Window.MoveToMonitor(2, window); //if (windowTitle.Contains("Current") && windowTitle.Contains("Assignment")) // BFS.Window.MoveToMonitorMaximized(2, window); //if (windowTitle.Contains("Current") && windowTitle.Contains("Support")) // BFS.Window.MoveToMonitorMaximized(2, window); } } }