Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I turn on/off the monitor using foxpro?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01219203
Message ID:
01223208
Vues:
17
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform