Code:
selection = int(raw_input("Press one to enable and two disable the screen saver: ")
Two opening parentheses, one closing. An editor with decent syntax highlighting would have helped you catch this.
subprocess.Popen doesn't work the same way, it takes a list of strings (the command and its arguments). If you want to use it, it's:
Code:
subprocess.Popen(['nircmd.exe', 'regsetval', 'sz', 'HKCU\\control panel\\desktop', 'ScreenSaveActive', '1'])
Or something along those lines, maybe it's a bit different on Windows.
Bookmarks