Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I deactive Screen Saver?
Message
From
28/09/1998 20:23:14
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00141342
Message ID:
00141694
Views:
27
Hi Mr. Ed Rauh.
thanks for reply.
but I have been more confuessed !@#!$%#% .... ^^:

I've got a George Tasker's class on this site, but this class olny could
disable, enable Screen Saver...

But What I want to handle screen saver is force stopping.

add on... what can i get ths window's handle (screen saver's ) ??
in other windows, i get this handle using FindWindow() but in screen saver
has not a title so i don't know how can i get this handle.

Do you Know???

sorry for my broken English...

thanks....

*******************************************
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.


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.)
****************************************************
Microsoft MVP(.NET)
funnyfox@dotnetxpert.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform