There isn't really a way as far as I know, you can either do auto logon, if you google sysintenternals autologon, which will automatically log you in from boot, there is a registry edit that will allow for the same function, or if you google caffeine for windows, caffeine will virtually commit actions to keep your computer from locking.