Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a screen saver
Message
De
24/04/1998 10:55:53
Ray Watson
A Certified Electronics Co
Knoxville, Tennessie, États-Unis
 
 
À
24/04/1998 09:30:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00093980
Message ID:
00094674
Vues:
36
Hi Guys,

Tried the following code...turns on screensaver ok, does not turn off???
The vlParm will turn on the screen saver wether its 0 or 1.

Still experimenting...

Thanks
#DEFINE SC_SCREENSAVE 0xF140
#DEFINE WM_SYSCOMMAND 0x0112

DECLARE INTEGER FindWindow IN WIN32API Integer, String
nHandle = FindWindow(0,_SCREEN.Caption)

DECLARE SHORT SendMessage IN WIN32API ;
	INTEGER nHandle, INTEGER nWmsg, ;
	INTEGER nParm, LONG nlParm
	
? SendMessage(nHandle,WM_SYSCOMMAND,SC_SCREENSAVE,0)

WAIT "" TIMEOUT 2

? SendMessage(nHandle,WM_SYSCOMMAND,SC_SCREENSAVE,1)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform