using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Get the window under the mouse
IntPtr window = BFS.Window.GetWindowUnderMouse();
// Move it to the next monitor
BFS.Window.MoveToNextMonitor(window);
// Get the new size/location for the window
Rectangle windowBounds = BFS.Window.GetBounds(window);
// Centre the mouse cursor over the window
BFS.Input.SetMousePosition(windowBounds.X + (windowBounds.Width / 2), windowBounds.Y + (windowBounds.Height / 2));
}
}