473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How to turn of the monitor by python?

I want to turn off my monitor from within python, How to do it?
Thanks!

Dec 13 '06 #1
2 1970
co*******@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.aspC API calls
into python. You can use ctypes (included in Python 2.5) or python
win32 extensions.

-- Leo

Dec 13 '06 #2
Thank you, that's exactly what I want.

Sorry I didn't give my OS info.
Leo Kislov wrote:
co*******@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.aspC API calls
into python. You can use ctypes (included in Python 2.5) or python
win32 extensions.

-- Leo
Dec 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Skip Montanaro | last post by:
For those who don't monitor python-mode checkins (does anyone? I doubt it), I checked in a couple changes to the python-mode package in the past few days which may be of interest. I thought I...
2
by: Claudio Grondi | last post by:
"You don't have to rely on expensive and proprietary EDI conversion software to parse, validate, and translate EDI X12 data to and from XML; you can build your own translator with any modern...
32
by: Xah Lee | last post by:
is it possible to write python code without any indentation? Xah xah@xahlee.org http://xahlee.org/PageTwo_dir/more.html
38
by: BORT | last post by:
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
2
by: cruddpuppet | last post by:
My school computer has monitor issues (turns off every 2 minutes) and I have to constantly turn it back on. I don't have the software or the privelages to install the software needed to scan for...
5
by: dongarbage | last post by:
Hi, Is there a way to create a .dll from a python program which includes the python runtime? I'm building a Windows application (C# VisualStudio2005) and I'd like to utilize some of the...
23
by: Just Another Victim of the Ambient Morality | last post by:
I'm looking for a linked list implementation. Something iterable with constant time insertion anywhere in the list. I was wondering if deque() is the class to use or if there's something else. ...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I don know how windows turn monitor or harddisk off??? I want to add same feature in my app so that my app can be a power saving app for laptops. I want to use different poweschemes as we do...
16
by: John Salerno | last post by:
Just something that crosses my mind every time I delve into "Learning Python" each night. Does anyone see any value in learning Python when you don't need to for school, work, or any other reason?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.