Refresh display properties

  • Thread starter Thread starter LUE42
  • Start date Start date
L

LUE42

I am setting the timeout for the screensaver via a registry key set
using the login script (different times based on group membership).

However, the setting does not take effect until the next login (the
setting must be 'read' before the login script is run).

Is there any way to refresh/get the computer to read this setting
again?

Thanks

Cory
 
I found a solution that works for me... rather than set it using a
registry key, I wrote a little VB app that sets it. I used a command
line variable so I can run it with the timeout I need for each group.

I used SystemParametersInfo(SPI_SETSCREENSAVETIMEOUT...).

I am not a VB programmer, and my code probably stinks... so I won't
bother posting it here... there are a million resources for help on
this if you search for the keyword "SPI_SETSCREENSAVETIMEOUT"

Cory
 
I found a solution that works for me... rather than set it using a
registry key, I wrote a little VB app that sets it. I used a command
line variable so I can run it with the timeout I need for each group.

I used SystemParametersInfo(SPI_SETSCREENSAVETIMEOUT...).

I am not a VB programmer, and my code probably stinks... so I won't
bother posting it here... there are a million resources for help on
this if you search for the keyword "SPI_SETSCREENSAVETIMEOUT"

Cory
 
Back
Top