The modern way, with powershell Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 1 Public static void setScreenSaver(boolean isActive, int timeOutMin, String pathToScr) throws IOException) ΔΆ) Get path from registry and rewrite scr file, but if is set to null, you can't do it. * set screen saver active, timeout and scr, only works in Windows JAVA setScreenSaver(true, 1, "C:\\Windows\\System32\\Mystify.scr") Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 60 /f Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 1 /f 1) Add in registry, make sure is active and setTimeOut (only minutes) CMD reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d C:\Windows\System32\Mystify.scr /f
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |