Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screens
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Miscellaneous
Thread ID:
00513540
Message ID:
00513682
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform