Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screens
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Divers
Thread ID:
00513540
Message ID:
00513682
Vues:
11
>Hi All:
> How can I write a code for my app that would allow me to display a screen saver after the passing of a specific amount of time where no keying has occurred.
>Thanks

Fairly simple with a little API help. Naturally, you'll need a timer to track the elapsed time. Then
#define WM_SYSCOMMAND 0x0112
#define SC_SCREENSAVE 0xF140
DECLARE INTEGER SendMessage IN Win32API;
  INTEGER hwnd,	INTEGER uMsg,;
  INTEGER wParam, INTEGER lParam
DECLARE INTEGER GetDesktopWindow IN Win32API
lnhWnd = GetDesktopWindow()
= SendMessage(lnhWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0)
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform