|
|
|
thanks man !!
i'll check it
|
|
|
|
|
ALMA_soul wrote: if anyone knows how to do it and want to charge me for writtng the application please
First, you're confusing us with RentACoder. Noone is going to write your code for you here.
ALMA_soul wrote: does anyone knows if it is possible to detect when the computer screen monitor is PLUGED or UNpluged from the AC power line
No, there's no way to tell.
|
|
|
|
|
Dave Kreskowiak wrote: ALMA_soul wrote:
does anyone knows if it is possible to detect when the computer screen monitor is PLUGED or UNpluged from the AC power line
No, there's no way to tell.
And many Word Perfect users can attest to that.
|
|
|
|
|
there's ALWAYS a way to do ANYTHING I refuse to accept the NO answer from Dave ..here is a suggestion inquire the EDID if you get an answer that means the monitor is pluged if on at a later inquire there is no answer well either the monitor is dead or unpluged ...that is considering the monitor is EDID capable (most new monitors are EDID capable)
can ANYONE help? any help will be apreciated
-- modified at 11:41 Tuesday 15th May, 2007
SO THE NEW QUESTION IS DOES ANYBODY HERE KNOWS HOW TO DO AN EDID ENQUIRE, please keep in mind I'm NOT a PROGRAMMER (very smart but not enough to be ONE OF YOU), a sample code WOULD BE APPRECIATED
|
|
|
|
|
here are the details:
in my application the CPU is ON but the monitor is literally unplug from the AC line (I live in a 3rd world country and saving electricity is vital to me) via a relay which I remotely activate from another room (that part is DONE and working).
I’m running Windows XP and I want the application to monitor the DISPLAY and detect when the AC is restored (the switch is keept in the ON position all the time)
When such detection is achived a count down timer program should display the minutes left (because the relay activates in 20 minutes intervals and the students should save their work before the monitor is UNPLUGED)
If you need more details please let me know
|
|
|
|
|
too much students an too few computers for them . also electricity here is too expensive and computer time MUST to be restricted to those intervals per student in order for every student to have acces to them.
CAN IT BE DONE?.
|
|
|
|
|
Thanks for the reference...please help me furthermore, assume that I NEVER programmed C++, Visual Basic, but I willing to learn JUST enough to make this project of mine works not in months but within the next few days. (necesity is the mother of creativity)
Where do I start?
The funtion of your reference is for what programming lenguage?
is there a free compiler for that lenguage and where can I download it?
THANKS VERY MUCH IN ADVANCE FOR ALL YOUR TIME.
GOD BLESS YOU.
answering your question, maybe god wants to show my students (using me, to lead by example) that there is no excuse for not finish the task at hand, but our own mental blocks.
|
|
|
|
|
ALMA_soul wrote: most new monitors are EDID capable)
Do all of your customers have EDID monitors? I seriously doubt it.
If you don't get an answer back, you get default values. So what does that mean? The monitor either doesn't exist, isn't plugged into AC, or isn't powered up at all, or is dead. Which is it and how does that affect your grand plan?
Besides, I can't think of a single reason this would be useful, and I've worked in MANY different environments. Monitors have supported StandBy mode for far longer than EDID. So what's the point?
|
|
|
|
|
As far as power usage goes, my 2001, 17" el cheapo CRT uses about 85W when on (presumably varies by brightness of image but not tested) and <5W in standby. Given the 50(??)+W a PC on standby would consume I'd think that if every last watt of power is a concern that shutting down the entire system rather than trying to create a rubegolderbergesque app.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
That's what I was thinking!
|
|
|
|
|
now we are getting somewhere, first thanks a lot for taking the time to answer and to accept there is a way (maybe limited, restricted but somehow a possibility), NOW.
standBY mode is NOT GOOD ENOUGH for my application the display must to be unpluged from the AC line when not in use (design restrictions) and the CPU has to detect when the AC is restore to the display in order to trigger another application (a count down program to display the minutes left for the user to work in that computer)
maybe is just dificult to understand (because the lack of ability to explain myself) BUT belive ME, this is what I NEED!
let's assume this solution will not work for ALL computer displays in the world but if it works with the ones we are using I be a happy for solving the problem (I tested a program I found in the web and they all are EDID capable) .
I understand YOU don't have the time for writing the FULL application for me, but if you, with all your programming experience can give me some pointers (maybe a code sample) in how to accomplish this, It will be appreciated.
|
|
|
|
|
ALMA_soul wrote: now we are getting somewhere, first thanks a lot for taking the time to answer and to accept there is a way (maybe limited, restricted but somehow a possibility), NOW
You didn't get what i said. You can TRY to call the function, but if there is no power to the monitor, the results you get back from the API are UNDEFINED. In that case, what does the data you get back, or lack of data, mean to your application?? There is no RELIABLE way to do this!
|
|
|
|
|
Dave Kreskowiak wrote: You didn't get what i said. You can TRY to call the function, but if there is no power to the monitor, the results you get back from the API are UNDEFINED. In that case, what does the data you get back, or lack of data, mean to your application?? There is no RELIABLE way to do this!
A guide to posting questions on CodeProject[^]
Dave Kreskowiak
YES I did, if you know how, COULD YOU PLEASE write an small sample code to read the EDID. If you don't do it, won't be because lack of time, but just because you don't wanted to help OR you don't have the foggiest idea in how to do it.
I personally haven't do it because I DO NOT KNOW HOW TO DO IT (yet), that's why I asking for help in this forum.
|
|
|
|
|
ALMA_soul wrote: If you don't do it, won't be because lack of time, but just because you don't wanted to help OR you don't have the foggiest idea in how to do it.
Don't presume to tell me why I'm not going to do this. It IS because of time. I CAN do it. You just haven't given me the motivation to do it. Nor, at this point, are you ever going to succedd in doing so.
In 5 minutes, I get to drive an hour back to work to take care of problems that should have been solved by other people! Then, drive an hour back. It sucks being on call 24 hours a day...
|
|
|
|
|
ALMA_soul wrote: there's ALWAYS a way to do ANYTHING
Really? Reassemble a nuclear weapon after it's been detonated. Call me when you're done.
|
|
|
|
|
Dave Kreskowiak wrote:
Forum Work and Training Issues
Subject: Re: I refuse to accept the NO answer from D.....
Sender: Dave Kreskowiak
Date: 18:53 15 May '07
ALMA_soul wrote:
there's ALWAYS a way to do ANYTHING
Really? Reassemble a nuclear weapon after it's been detonated. Call me when you're done.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
2006, 2007
Nature does it all the time, takes a lot of time though, but just look around you and EVERYTHING you see now ONCE upon a time was part of a nuclear explosion inside a star.
|
|
|
|
|
Nature doesn't build nuclear weapons. Nature creates giant fusion reactors.
|
|
|
|
|
Surely there is some kind of hardware do-hickey that could do this for you? I'm imagining there is something that plugs in-line with your monitor, monitors the flow of current to the monitor and reports back to the computer via a serial port or USB or some such.
[joking]Alternatively, hook up a webcam that watches the monitor and have a program sum up the total brightness of the display and trigger when the brightness suddenly increasing (because the power's back on). How's that for over engineering?[/joking]
|
|
|
|
|
Dave Kreskowiak wrote: you're confusing us with RentACoder
Seems like these guys from certain places that get those gigs try and pawn off help around here? Shame!
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Please don't cross post in several different forums, it is rude. Also, there is a job board you may want to post the opportunity on...
|
|
|
|
|
which should i do.
stay at my current company -
+ loads of new technology
+ lots of work.
- rubbish atmosphere (no one talks), no team spirit.
Or go back to my old place
+ much better atmosphere (very good team spirit)
+ been offered a LOT of money
- not got the track record for helping you to keep your skills up to date.
...old place may involve less .net and more java too. not sure if that's a good thing or a bad thing.
can't decide whether to go for the money, or stay where i am.
|
|
|
|
|
There is always a third option and that is to find somewhere completely new.
|
|
|
|
|
Yeah that's true. But I'm lucky that both of these places are within 30 minutes drive of where I live. I'm so used to not having to commute that I'm restricting myself to being local, that way i spend more time with family.
|
|
|
|