Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I deactive Screen Saver?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00141342
Message ID:
00141846
Views:
37
>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...
>
Hi Lee,

Stopping an active screen saver doesn't require a call to the API at all. All you need to do is execute:
MOUSE DRAG TO MROW() - 1, MCOL() - 1
MOUSE DRAG TO MROW() + 1, MCOL() + 1
I personally don't think that it's worth the overhead to check to see if the screen saver is active. Just executing the above makes sure that it isn't. If you have a lengthy operation you want to execute, then use my class to disable the screen saver and when it's complete, re-enable it. Note that if the enable/disable screen saver object is destroyed, it will automatically restore the screen saver.

Don't worry about your English, it's perfectly understandable.

hth,
George

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

Click here to load this message in the networking platform