How to turn of the monitor by python?

could.net at gmail.com could.net at gmail.com
Wed Dec 13 00:36:28 EST 2006


Thank you, that's exactly what I want.

Sorry I didn't give my OS info.
Leo Kislov wrote:
> could.net at gmail.com wrote:
> > I want to turn off my monitor from within python, How to do it?
> > Thanks!
>
> Do you realize that hardware management and control is OS dependant?
> When asking such questions always specify OS.
>
> Assuming you are interested in Windows, then you just need to translate
> this <http://www.codeproject.com/system/display_states.asp> C API calls
> into python. You can use ctypes (included in Python 2.5) or python
> win32 extensions.
> 
>   -- Leo




More information about the Python-list mailing list