Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I deactive Screen Saver?
Message
From
28/09/1998 06:50:44
 
 
To
28/09/1998 05:16:13
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00141342
Message ID:
00141352
Views:
26
>Hi! Everyone
>I have a question that very difficult for me....
>
>My question is like that....
>
> How Can I deactive Screen Saver that running now......

The easiest way would be to use George Tasker's class in the Files section here on UT. In order to shut down the current screen saver, you either must use SendMessage() to message the screen saver, or better, to use SystemParametersInfo() with the SPI_SETSCREENSAVEACTIVE action. You'll need to look at how to set this up in the API documentation; if you have Visual Studio, it's documented in the API Help file, with specific values defined in WINBASE.H in the Visual C++ INCLUDES directory. SystemParametersInfo() should be callable for this directly from VFP without needing a wrapper function.

>
> I got a information that in Win32API ScreenSaverProc function is
> related this work.... but how can i use this function???

This function is not part of the API, but is a generic part of a Screen Saver's public interface; this is the module that receives and processes Windows Messages in the screen saver itself. You can send requests to the screen saver via SendMessage() (you'd have to find the Window Handle for the screen saver first, and then send the appropriate message; I have no clue as to what messages are accepted by screen savers, or the Window name for the screen saver to use the FindWindow() function to get it.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform