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

See my message to Donald (I thought I copied you on it). I got the same result. MOUSE DRAG...however, did turn it off.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform