Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a screen saver
Message
From
24/04/1998 10:55:53
Ray Watson
A Certified Electronics Co
Knoxville, Tennessee, United States
 
 
To
24/04/1998 09:30:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00093980
Message ID:
00094674
Views:
35
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform