Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Properties
#1
Hey, how would I make a macro that opens the Display Properties and then sets the wait time for my screen saver?
#2
Will not tell you but it also can be changed using Windows API. Search the forum for SystemParametersInfo.
#3
i had tried something like this :

SystemParametersInfo SPI_SETDESKWALLPAPER 0 _s.expandpath("$commonpictures$\Sample Pictures\Forest.jpg") 3 ;;change
5
SystemParametersInfo SPI_SETDESKWALLPAPER 0 "" 3 ;;remove
5
SystemParametersInfo SPI_SETDESKWALLPAPER 0 SETWALLPAPER_DEFAULT 3 ;;should restore default, but does not work on my computer



but i got a syntax error
#4
It is not for screen saver.
#5
set screen saver idle time

Code:
Copy      Help
int xx = 120 ;; this is in seconds

SystemParametersInfo SPI_SETSCREENSAVETIMEOUT xx 0 0

for more info:
Code:
Copy      Help
http://msdn2.microsoft.com/en-us/library/ms724947.aspx
#6
whenever i try that i always get: Error in ScreenSaver: unknown identifier... and the error is for "SPI_SETSCREENSAVETIMEOUT"

could this be because i dont use the latest version of QM?
#7
Quote:could this be because i dont use the latest version of QM

Yes.

Replace SPI_SETSCREENSAVETIMEOUT to 15.
#8
Thanks alot. Works Great.
#9

Is it possible to use something like the code above to trigger your screen saver instantaneously rather then set the time in minutes? Or is it not possible to go below the minimum time of 1 minute of inactivity?
Taking on Quick Macros one day at a time
#10
Screen saver and wallpaper functions
#11

Awesome, thanks.
Taking on Quick Macros one day at a time


Forum Jump:


Users browsing this thread: 1 Guest(s)