Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I turn on/off the monitor using foxpro?
Message
From
07/05/2007 16:45:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01219203
Message ID:
01223208
Views:
11
This message has been marked as the solution to the initial question of the thread.
>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/324347

command 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform