>Hello and thanks in advance for any help;
>
>I like to know if I can turn the video signal (or monitor) on and off from a FoxPro application. I have an application in a factory that needs to put the monitor to sleep for few hours.
>
>Thanks a lot.
>
>Juan Urbina
If you are using Windows 2003 or XP, you might be able to use powercfg.exe to change the monitor timeout to 1 minute when you want it to be blank (off) and then change it back to a higher figure when you want it on.
See:
http://support.microsoft.com/kb/324347command used in command prompt:
powercfg.exe /change "Home/Office Desk" /monitor-timeout-ac 1
and
powercfg.exe /change "Home/Office Desk" /monitor-timeout-ac 15
The above commands can be executed by VFP.