using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Set the Monitor ID you want to move the windows from // uint monitorID = BFS.Monitor.GetMonitorIDs()[1]; uint monitorID = BFS.Monitor.GetMonitorIDByXY(4300, 300); // Loop through the visible windows on the monitor and move them to the monitor that has the mouse cursor foreach (IntPtr window in BFS.Window.GetVisibleWindowHandlesByMonitor(monitorID)) { BFS.DisplayFusion.RunFunctionWithWindowHandle("Move Window to Next Monitor", window); } } }