Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call Win95 Services, such as screensaver, dial-up dialog
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00204087
Message ID:
00205835
Vues:
19
>>I want to know which API can do:
>>
>>a) run Screen Saver (e.g. ndshow1.scr)
>
>Hi Justok,
>
>I'll have to research the others, but here's how to activate the screen saver.
>#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)


Thanks George, it works fine for window standard screen saver,
but it get errors in the screen saver is made by screen saver tools...

Actually, I miss the statement to call screen saver by using RUNDLL32.exe

the statement will sth like:

RUNDLL32.exe desk.cpl,.... myscreen.scr

>.<'
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform