473,404 Members | 2,114 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,404 software developers and data experts.

Turn Monitor off with python

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 viruses, and there are no more extra computers in class, so I'm forced to use this one. I was wondering if there was a way to turn the monitor off/on with python. I know how to set the switch (use pyHook, check if the 'esc' button is pressed, if it is, turn the monitor on) but I don't really know how to turn the monitor off.


Some sources tell me to look into ctypes and do some c functions and whatnot, while other sources tell me to use python win32 modules, but I really don't knwo where to go after that.
Mar 8 '07 #1
2 3591
ghostdog74
511 Expert 256MB
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 viruses, and there are no more extra computers in class, so I'm forced to use this one. I was wondering if there was a way to turn the monitor off/on with python. I know how to set the switch (use pyHook, check if the 'esc' button is pressed, if it is, turn the monitor on) but I don't really know how to turn the monitor off.


Some sources tell me to look into ctypes and do some c functions and whatnot, while other sources tell me to use python win32 modules, but I really don't knwo where to go after that.
i suspect its the power management. you should consult your school administrator about this
Mar 8 '07 #2
I have, they said they have to wait for some guy to come, and until then, they can't do anything about it.
Mar 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bathroom_Monkey | last post by:
Hi, I am building some php script that will backup a mysql database and store it locally. This script will be run on a spare computer I have in my office. I want the results of the backup to be...
3
by: Don | last post by:
Setting: chruch multimedia computer and projection system, with 2 display monitors. The projector is connected to monitor #2. Is there some way using JavaScript I can display a ".jpg" picture...
1
by: Micah Hastings | last post by:
The last time I did this was back in Visual Basic 6. Now I am using VB.NET 2005. When I use my code now, it turns off the monitor just fine. However when I move my mouse the monitor comes back...
2
by: could.net | last post by:
I want to turn off my monitor from within python, How to do it? Thanks!
3
by: akbar | last post by:
I googled and searched in archive. All I can find is finding resolution with Tkinter and pygame. Any idea to find monitor resolution with standard python module? I can check from output of: xprop...
1
by: frikk | last post by:
Hey Everyone! I've got a question regarding the capabilities of python in a real time environment. I'll start by saying I'm a little bit flaky when it comes to terminology, so please correct me or...
5
by: soulofstar | last post by:
I want to monitor the CPU and RAM usage using Python, Now, I know how to monitor RAM usage by Python from ctypes import * from ctypes.wintypes import * class MEMORYSTATUS(Structure): ...
7
by: terryscott | last post by:
Every time I enter Python it resets the monitor resolution to 640 x 480. I am not setting the monitor resolution anywhere. I am currently running Python 2.5 on a Windows XP computer. Any info will...
13
by: Cross | last post by:
I am developing an application that will show movies. When you wach a movie, you do not want the Power Option "Turn off monitor" to be anabled. Is there anyway to fix this from VB.net? (note that I...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.