예제 #1
0
        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);
            }
        }
예제 #2
0
        public static Win32Window FromClassName(string className)
        {
            IntPtr hwnd = Native.FindWindow(className, null);

            return(Win32Window.FromHandle(hwnd));
        }