Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SystemParametersInfo
Message
 
To
19/02/1999 14:51:54
Ray Watson
A Certified Electronics Co
Knoxville, Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00189403
Message ID:
00189466
Views:
9
>Hi George,
>Boy I was hoping you were out there somewhere. Thanks for responding, I've downloaded your class and will try it.
>
>One more thing...My understanding of the SreenSaverActivate/De-Activate function is that these functions will not start the screen saver running or stop the screensaver if it is running. A few months back you helped me program a way to stop the screen saver if it was running...MouseMove!! Any ideas on how to start the screen saver immediately from code? When the screensaver is Activated it will start when it timesout...maybe setting SPI_SETSCREENSAVERTIMEOUT to 0 will work???
>
>Thanks again...good hearing from you
>Ray
>
>I still owe you a beer, sorry :)

Hi Ray,

Don't worry about the beer. As a matter of fact, that Enable/Disable Screen Saver class may have been the result of your question. Anyway, here's how to start the screen saver:
#define WM_SYSCOMMAND 0x0112
#define SC_SCREENSAVE 0xF140
DECLARE INTEGER SendMessage IN Win32API;
  INTEGER hwnd,	INTEGER uMsg,;
  INTEGER wParam, INTEGER lParam
DECLARE INTEGER GetDesktopWindow IN Win32API
lnhWnd = GetDesktopWindow()
= SendMessage(lnhWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0)
That do the trick for you?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform