Quantcast
Viewing all articles
Browse latest Browse all 75

Run a screensaver with Python

How do you run a screensaver from Python? The code I'm trying could only open the screensaver's properties window.

    Import subprocess
    subprocess.call(['C:\WINDOWS\System32\ssText3d.scr'])  

As the code is running from a unWindows program, Windows deals with this differently then if we were to use a Windows way of running it e.g., by going into System32 and double clicking ssText3d.scr; or by executing ssText3d.scr from Run...


Viewing all articles
Browse latest Browse all 75

Trending Articles