Is this for development just for practice or are you talking about a Production environment? We can give suggestion after suggestion all day, and that's fine, but I want to make sure first. The screen locking and causing issues is a super common problem, and typically it is solved by one of the following: (1) using the Login Agent VBO's action for unlocking a screen before working, (2) having your IT admins change the machine itself or the group policy it is in to not lock the screen, or (3) running a script such as in PowerShell to keep the machine "awake" so the screen does not lock.
------------------------------
Dave Morris
3Ci at Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company