With the idea from HakByte, we wrote a similar small python utils and convert it o Windows EXE.
This is mouse jiggler tool which prevents it from falling asleep by moving the mouse to simulate human input (bypass screensaver locking).
Then I just convert it to Windows executable with pyinstaller.
pyinstaller --onefile --noconsole mouse_jiggler.py
pyinstaller --onefile -w -f mouse_jiggler.py
Links:
- Mouse Jiggler - https://github.com/myseq/utils