-
-
Notifications
You must be signed in to change notification settings - Fork 281
Description
Last one (for tonight, sorry about the spam).
If you want to setup this script to run automatically on system start, for Windows it's easiest to use the Task Scheduler. You can set this up fairly easily to run something like C:\Users\xxx\AppData\Local\Programs\Python\Python310\python.exe "main.py" assuming you're starting the task in the directory where main.py is.
For a version without console output (I assume how most people would want to use this). You'd use pythonw.exe. The issue with that is that it keeps opening up a CMD prompt every second then closing, It steals mouse focus too which isn't ideal. Some Googling around seems to show this is perhaps related to https://github.com/pyinstaller/pyinstaller/wiki/Recipe-subprocess. This is some vague guess work as I'm not overly familar with Python.
Also it would be nice to easily be able to turn the screen off, either by passing some args to the main.py call or having a seperate script to call, then you could run this on user logoff etc.