using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Get focused window handle var wHandle = BFS.Window.GetFocusedWindow(); // Move window to next monitor BFS.Window.MoveToNextMonitor(wHandle); // Get window bounds var wBounds = BFS.Window.GetBounds(wHandle); // Move mouse to center of window BFS.Input.SetMousePosition(wBounds.Width/2 + wBounds.X, wBounds.Height/2 + wBounds.Y); } }
using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { var monID = BFS.Monitor.ShowMonitorSelector(); BFS.Window.MoveToMonitor(monID, windowHandle); var wBounds = BFS.Window.GetBounds(windowHandle); BFS.Input.SetMousePosition(wBounds.Width / 2 + wBounds.X, wBounds.Y + 15); } }