public static void MoveTaskSwitcherToSecond(Entities.Win32Window window) { // maybe implement this differently later - like mirror this window on both screens Point mousePos = Native.GetCursorPosition(); var targetScreen = Screen.FromPoint(mousePos); if (!targetScreen.Primary) { window.MoveWindowTo(targetScreen); } }
public static Win32Window FromClassName(string className) { IntPtr hwnd = Native.FindWindow(className, null); return(Win32Window.FromHandle(hwnd)); }