Topic: Trying to add a screen saver...what am I missing?  (Read 1153 times)

Trying to add a screen saver...what am I missing?
« on: October 19, 2018, 01:57:15 PM »

torindkflt

  • Apprentice
  • *
  • Date Registered: Jun 2018
  • Posts: 3
Greetings. I have a well-customized build of Win10PE (Admittedly the now-ancient build 10240, but it works & I hesitate to try updating the plugin & risk losing my customizations). I would like to add screen saver support to it, but I'm running into some issues.

I have a very simple screen saver I created many years ago. All it does is slowly bounce a logo around the screen. The only requirement for the screen saver to run (manually) is the file msvbvm50.dll. I have customized my build to add both the .scr file and msvbvm50.dll to the Windows\System32 folder in WinPE, along with the file scrnsave.scr which (AFAIK) is required to automatically invoke the screen saver. I then created a .reg file that sets the screen saver, sets the timeout to 5 minutes, disables the password protection and then enables the screen saver, and edited autorun.cmd to import that into the registry at bootup. The problem is, it never automatically runs. I can right-click on the desktop and select Customize, and although the Screen Saver icon there still says "None", clicking on it will bring up the screen saver selection box, which DOES show everything as it should be. But, it just simply will not run on its own. I can manually run it though, so I know all of the files needed for the screen saver to actually operate are on there. I just can't get the automatic trigger working.

So...what am I missing? Additional files I should include in the build? Is there a plugin I should be using instead, or another overlooked setting that needs to be changed?

(BTW, some will likely say that screen savers are no longer needed because LCDs don't have burn-in, but my response to that is "they can still get pixel fatigue, which is similar" and thus the reason why I want to add this screen saver).

Thank you.

Re: Trying to add a screen saver...what am I missing?
« Reply #1 on: October 19, 2018, 03:40:03 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
What you need to find out is WHAT changes when you manually invoke screensaver via dialog box...
It is either a Registry Setting or a File or a file command...

Re: Trying to add a screen saver...what am I missing?
« Reply #2 on: October 19, 2018, 05:43:20 PM »

torindkflt

  • Apprentice
  • *
  • Date Registered: Jun 2018
  • Posts: 3
What you need to find out is WHAT changes when you manually invoke screensaver via dialog box...
It is either a Registry Setting or a File or a file command...

Which I have already done, as stated in the OP (The part about editing autorun.cmd to import a .reg file). It still will not automatically start after sitting idle, though. I can manually run the screen saver just fine, so there's nothing preventing it from working. Rather, it's like the system idle countdown timer that automatically invokes it is not running or is being ignored.

Re: Trying to add a screen saver...what am I missing?
« Reply #3 on: October 19, 2018, 06:28:54 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Quote
I can right-click on the desktop and select Customize, and although the Screen Saver icon there still says "None"

It should say
Quote
very simple screen saver I created many years ago

Re: Trying to add a screen saver...what am I missing?
« Reply #4 on: October 19, 2018, 06:39:55 PM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
If the setting is changed in the registry you may be reimporting back into the wrong area, some keys positioned in the "Default" hive may need to be put back into the "Software" hive to function correctly under PE.  Also the settings may be stored in a file and not inside the registry..

The scr file does not automatically invoke anything, it is a windows setting that you will have to find...

Re: Trying to add a screen saver...what am I missing?
« Reply #5 on: October 19, 2018, 11:35:12 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Want To Note:
You are the Only Tester of your Screen Saver Plugin
Since you did not provide US with any testing material
We are just offering you suggestions of what we would be looking for..
« Last Edit: October 19, 2018, 11:35:42 PM by James »

Re: Trying to add a screen saver...what am I missing?
« Reply #6 on: October 22, 2018, 03:40:44 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Bob, Here are the setting that I found changed..
But, Screen Saver will not Invoke after TimeOut
But, will if manually clicking *.scr file

Code: [Select]
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",ScreenSaveActive,1
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",LockScreenAutoLockActive,0
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",ScreenSaveTimeOut,%SaverWait%
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",ScreenSaverIsSecure,0
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",SCRNSAVE.EXE,X:\Windows\system32\%ScreenSaver%
RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Lock Screen",SlideshowEnabled,0
« Last Edit: October 22, 2018, 03:41:57 PM by James »

Re: Trying to add a screen saver...what am I missing?
« Reply #7 on: October 22, 2018, 06:40:45 PM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Will look at this tonight..

Re: Trying to add a screen saver...what am I missing?
« Reply #8 on: October 22, 2018, 07:45:23 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Code: [Select]
[Interface]
Saver_ScrollBox=Bubbles,1,4,10,351,139,21,None,"3D Text",Blank,Bubbles,Mystify,Ribbons
SaverWait_NumberBox=SaverWait_NumberBox,1,2,243,349,40,22,1,1,120,1

[Variables]
%ScreenSaver%=

[Process]
If,Not,%Saver_ScrollBox%,Equal,None,Run,%ScriptFile%,Process_ScreenSaver

[Process_ScreenSaver]
ExtractSectionFiles,%ScriptFile%,AddScreenSaverFiles
If,%Saver_ScrollBox%,Equal,"3D Text",Set,%ScreenSaver%,ssText3d.scr
If,%Saver_ScrollBox%,Equal,Blank,Set,%ScreenSaver%,scrnsave.scr
If,%Saver_ScrollBox%,Equal,Bubbles,Set,%ScreenSaver%,Bubbles.scr
If,%Saver_ScrollBox%,Equal,Mystify,Set,%ScreenSaver%,Mystify.scr
If,%Saver_ScrollBox%,Equal,Ribbons,Set,%ScreenSaver%,Ribbons.scr
//--
Set,%SaverWait%,%SaverWait_NumberBox%
StrFormat,MULT,%SaverWait%,60
//--
RegHiveLoad,Tmp_Default,%RegDefault%
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",ScreenSaveActive,1
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",LockScreenAutoLockActive,0
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",ScreenSaveTimeOut,%SaverWait%
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",ScreenSaverIsSecure,0
RegWrite,HKLM,0x1,"Tmp_Default\Control Panel\Desktop",SCRNSAVE.EXE,X:\Windows\system32\%ScreenSaver%
RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Lock Screen",SlideshowEnabled,0
RegHiveUnLoad,Tmp_Default

[AddScreenSaverFiles]
\Windows\System32\Mystify.scr
\Windows\System32\ssText3d.scr
\Windows\System32\Ribbons.scr
\Windows\System32\Bubbles.scr
\Windows\SysWOW64\scrnsave.scr
\Windows\System32\scrnsave.scr

 

Powered by EzPortal