Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a screen saver
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00093980
Message ID:
00094647
Vues:
39
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform