Change screensaver through registry

If you wanna change the screensaver, you can update registry as follows{autoit script}:

RegWrite("HKEY_CURRENT_USERControl PanelDesktop", "ScreenSaveTimeOut", "REG_SZ", "60")
RegWrite("HKEY_CURRENT_USERControl PanelDesktop", "SCRNSAVE.EXE", "REG_SZ", "C:Windowssystem32ssText3d.scr")
RegWrite("HKEY_CURRENT_USERControl PanelDesktop", "ScreenSaveActive", "REG_SZ", "1")
RegWrite("HKEY_CURRENT_USERControl PanelDesktop", "ScreenSaverIsSecure", "REG_SZ", "0")

I have updated HKEY_CURRENT_USERControl PanelDesktopScreenSaveTimeOut property in Registry manually but its not reflected in Display Properties Windows 8 GUI.

The result is that screen saver time out value shown in GUI takes precedences over the one in the registry.

When I update the GUI - the registry changes. It appears that this is a one way street - changes made from registry do not take affect the GUI although changes made from the GUI do take affect.

Finally, I found it worked after I restart the computer.But I don't know why, just do as this.

原文地址:https://www.cnblogs.com/jenney-qiu/p/3519004.html