I'm running Python 2.7.11 on Windows 10 and I need to automatically pause and resume the desktop background slideshow for a program.
My current approach is to issue commands to the command prompt thru Python's subprocess module. Below are the commands I've tried.
subprocess.call("powercfg -change -0d7dbae2-4294-402a-ba8e-26777e8488cd-309dce9b-bef4-4119-9921-a851fb12f0f4 1");
subprocess.call("powercfg -change -desktop-background-settings 1");
I know that the commands aren't working as I've tried issuing them directly thru command prompt and I've received "invalid parameters" as an error message.
Any instruction on how to achieve this thru powercfg or another method is appreciated. Thanks.