Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a screen saver
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00093980
Message ID:
00094647
Views:
38
>Alright, alright.
>
>I just did a test in Delphi with this code and guess what, it worked!
>
>// Start the default screensaver
>//
>SendMessage(Application.Handle,WM_SYSCOMMAND,SC_SCREENSAVE,0);
>// Let it run a bit
>//
>Sleep(1000);
>// Now stop it
>//
>SendMessage(Application.Handle,WM_SYSCOMMAND,SC_SCREENSAVE,1);
>
>Now George, do you think that you can translate this to VFP? I had a problem with the return value because it varies and the WM_SYSCOMMAND param in VFP.

Donald,

I don't know if I can, but I'll give it a shot. Just one question: Is the "Application.Handle" member referenced above the window handle of the application? I assume that it is.
George

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

Click here to load this message in the networking platform