I use two monitors, and I find it annoying that an application will open on the right screen when I clicked on it from the start menu in the left screen or vice versa. I just want the application to open on whatever screen I am currently looking at, and 90% of the time when I open an application, I am looking at the screen I opened the application from. So I made this C# application that moves newly opened Windows applications to the monitor that the mouse is on.
- Open Task Scheduler.
- Click on Create Task.
- Set the task to Run only when the user is logged on to ensure it runs in the user session.
- Under the Triggers tab, create a trigger for At log on.
- Under the Actions tab, set Start a program and browse to your executable (
.exe
file).- Enter
--hidden
forAdd arguments (optional):
so that the console window will not be visible.
- Enter
- Under the General tab, check Run with highest privileges.
- Run the task manually from Task Scheduler and see if it correctly moves windows as expected.