IanN1990 Posted November 24, 2012 Share Posted November 24, 2012 (edited) Though i am aware this is not what you asked for, but i thought i would post it anyways. I know somewhere in the help-file is code that turns off your screen. So you could hotkey this to a button, and then store the state has a varaible. Screens = On Hit-Hotkey Code that turns screens off Screen = Off Edited November 24, 2012 by IanN1990 Link to comment Share on other sites More sharing options...
Zohar Posted November 24, 2012 Author Share Posted November 24, 2012 (edited) Hi Ian Thank you.. You know the saying "The best way to predict the future, is to create it"? So this is what you did here.. We can know the Screen's Power State programatically, If we changed it programatically ourselves.. It is indeed nice.. Yet I hope to achieve getting the status from the screen itself, so I will be able to know even when the screen's power state was changed via the power button, and not only programatically.. Edited November 24, 2012 by Zohar Link to comment Share on other sites More sharing options...
IanN1990 Posted November 24, 2012 Share Posted November 24, 2012 Aye, i was aware it wasn't what you was asking for but felt just incase you cant figure out a way. Then this might be like a backup idea so ur not left with nothing Link to comment Share on other sites More sharing options...
Zohar Posted November 24, 2012 Author Share Posted November 24, 2012 Thanks Ian Link to comment Share on other sites More sharing options...
MilesAhead Posted November 24, 2012 Share Posted November 24, 2012 Best I could find was GetDevicePowerState()But on a C++ forum a guy trying to use it claimed it didn't work anyway. My Freeware Page Link to comment Share on other sites More sharing options...
Zohar Posted November 24, 2012 Author Share Posted November 24, 2012 Well Instead of trying existing code of other people, I think I want to try to create mine.. Let's check the sniffing way. Is there a way to sniff the Control Data that is sent to the Screen? (not the data that is displayed on the screen, but the stuff that tell it GetBrightness, ChangeBrightness, etc) The screen should have some IO Port assigned to it, in Windows. So If I can sniff it, I can then try to send it myself, and see what I'm getting.. Link to comment Share on other sites More sharing options...
MilesAhead Posted November 24, 2012 Share Posted November 24, 2012 (edited) I thought that's what Device IO Control was all about. Edited November 24, 2012 by MilesAhead My Freeware Page Link to comment Share on other sites More sharing options...
guwguw Posted December 6, 2012 Share Posted December 6, 2012 May I ask what the importance of such a thing is anyway?The last time I was confronted with this task was when a government official was trying to write a virus which would only be active when the screen of the infected computer showed "power off" status ... nothing worth supporting, IMHO. Link to comment Share on other sites More sharing options...
Zohar Posted December 7, 2012 Author Share Posted December 7, 2012 The last time I was confronted with this task was when a government official was trying to write a virus which would only be active when the screen of the infected computer showed "power off" status ... nothing worth supporting, IMHO.Pretty lame virus, IMHO.A virus can do its work without necessarily displaying anything to the screen.So anyone wanting to write a virus, does not really need to wait for the screen to be Off.In any case, that's not my aim, I hope you understand. Link to comment Share on other sites More sharing options...
Chimaera Posted December 7, 2012 Share Posted December 7, 2012 (edited) Not that i can add a lot to this discussion but.. Does a monitor still accept input from a graphics card if its switched off, can you check the graphics card for things going on and try and differentiate between the states? Work from the other end so to speak Edited December 8, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted December 7, 2012 Share Posted December 7, 2012 (edited) The video card output "brightness" and you display "brightness" are only connected by the perception of the product result. What you want to do is not possible at the moment. I don't like saying things are impossible, so maybe a better way of saying it is, unless you work with a consortium in the development of hardware standards and can convince the industry to enable a feature which presently does not exist, you will not have success. And since it doesn't exist yet, and it wouldn't be terribly difficult relative to the things they accomplished, there may be a good reason for it. Edited December 7, 2012 by DicatoroftheUSA Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now