Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I deactive Screen Saver?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00141342
Message ID:
00141846
Vues:
38
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform