Refresh display properties

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
 
L

LUE42

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
 
L

LUE42

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top