I’ve written a little program that sends a “left Windows key pressed” key event which brings you to the desktop. All you have to do is start the .exe file after logging in.
You can do this by using either the task scheduler or the windows Startup folder (
However the task scheduler should be a bit faster.
How to use the task scheduler:
Open the task scheduler and click on “Create Task…” on the right.
Choose a name and go to Triggers.
Click on “New” and choose “Begin the task: At Log on”.
Go to Actions, click on “New”, browse for the .exe file and select it.
If you are on a laptop, go to Conditions and deselect “Start the task only if the computer is on AC power”.
This should be all.
Here is the zipped .exe file:
Here is the C++ source code:
Thanks to batchloaf for the SendInput tutorial.