A simple Visual Basic app that starts/stops an executable of your choosing automatically. The executable will be started when either the computer is locked, or when the screensaver starts. Likewise, the executable will be stopped when the computer is unlocked, or when the screensaver stops.
This project is built and maintained with Visual Studio 2017:
https://www.visualstudio.com
Guide on how to link a git project to VS:
https://docs.microsoft.com/en-us/vsts/git/gitquickstart?tabs=visual-studio
Direct download for the release executable can be found here:
https://github.com/jospete/BackgroundTaskRunner/blob/master/BackgroundTaskRunner/bin/Release/BackgroundTaskRunner.exe
Link the executable in your startup folder to keep it open after reboot:
https://support.microsoft.com/en-us/help/4026268/windows-change-startup-apps-in-windows-10
- Make sure that you either lock your computer manually (Windows+L) or have a screensaver set for this runner to activate.
- This runner will not run on startup, and must remain open for the selected executable to be run in the background.
- Once you've entered a valid "exe" or "bat" path into the "Executable" box, you can test the runner by pressing the "Start" and "Stop" buttons.
- If the runner becomes slow to respond, try clearing the logs and hitting the "Stop" button to make sure there's no lingering funk.
- Un-checking "Stop on Awake" will allow a process to keep running when your computer wakes up. This is useful if you want to check the history of the running app before closing it.