Screensaver timeout setting

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
arobin4
Junior Coder
Posts: 33
Joined: Sat Apr 07, 2012 5:41 am

Screensaver timeout setting

Post by arobin4 » Wed Jan 21, 2015 5:59 pm

Hello forum:

I need to retrieve the screensaver timeout setting on the PC the macro is running on & store value to a variable. Is there a command or method to get this information?

Thanks!

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Screensaver timeout setting

Post by JRL » Wed Jan 21, 2015 8:01 pm

Read the registry. The result is in seconds.

Code: Select all

RegistryReadKey>HKEY_CURRENT_USER,Control Panel\Desktop,ScreenSaveTimeOut,res
MDL>res

arobin4
Junior Coder
Posts: 33
Joined: Sat Apr 07, 2012 5:41 am

Re: Screensaver timeout setting

Post by arobin4 » Thu Jan 22, 2015 6:09 am

JRL!
Thank you

Aaron

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts