How to launch the Windows screensaver from Python ?
I have tried methods like
import subprocess
subprocess.Popen("C:\Windows\System32\scrnsave.scr")
it starts a screensaver, but it doesn't start the screensaver that has been configured in the Windows control panel.
PS: there are a few questions tagged [screensaver] + [windows] + [python], but I haven't found a question+answer specific to Windows with Python, so here is Q+A post.
You can launch the screensaver with:
Here is another working solution: