GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Nov-2008, 06:44
sameer.nalawade sameer.nalawade is offline
New Member
 
Join Date: Nov 2008
Posts: 3
sameer.nalawade is an unknown quantity at this point

Detecting Monitor is On or Off


Hello everyone,
I m writing a c program to detect whether monitor is on or off, but have no clue where to start from. In linux there is utility ddcprobe which detects the hardware status , but it works only when we completely disconnect the monitor or power cable of monitor.
So if anyone has any ideas please help.
Thanks.
  #2  
Old 19-Nov-2008, 15:22
Blake's Avatar
Blake Blake is offline
Regular Member
 
Join Date: Nov 2005
Posts: 331
Blake is a jewel in the roughBlake is a jewel in the roughBlake is a jewel in the rough

Re: Detecting Monitor is On or Off


CPP / C++ / C Code:
printf("The monitor is on");

If the monitor is on, you'll see the words "the monitor is on" on the screen. If the monitor is off, you won't.
__________________
www.blake-foster.com
  #3  
Old 19-Nov-2008, 22:14
sameer.nalawade sameer.nalawade is offline
New Member
 
Join Date: Nov 2008
Posts: 3
sameer.nalawade is an unknown quantity at this point

Re: Detecting Monitor is On or Off


well i know about printf but i need program to detect monitor
  #4  
Old 25-Nov-2008, 20:49
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 545
Peter_APIIT can only hope to improve

Re: Detecting Monitor is On or Off


Blake is quite rude sometime.
  #5  
Old 22-Dec-2008, 07:10
Ndimangwa Ndimangwa is offline
New Member
 
Join Date: Dec 2008
Location: BANGALORE - INDIA
Posts: 12
Ndimangwa has a little shameless behaviour in the past

Re: Detecting Monitor is On or Off


I am not sure but I think using ROM-BIOS routine is possible to know if status is on or off. I do not have codes directly with me now but let me work on it!
  #6  
Old 23-Dec-2008, 07:34
george135 george135 is offline
Account Disabled
 
Join Date: Jan 2008
Posts: 10
george135 has a little shameless behaviour in the past

Re: Detecting Monitor is On or Off


On Windows, just use Win32 api
 
 

Recent GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting Cursor-Icon Change mwmey1 C++ Forum 0 24-Jul-2008 03:03
KeyDown Event (Problem in detecting "SHIFT + 1") apremanandh MS Visual C++ / MFC Forum 2 22-Nov-2007 23:40
Detecting new hardware at runtime aparnas MS Visual C++ / MFC Forum 1 21-Aug-2007 05:46
Detecting a window in a window zapper222 MS Visual C++ / MFC Forum 0 27-Apr-2007 16:27
Here is a questions about detecting the smallest and the largest integers jenmaz C Programming Language 8 24-Nov-2004 08:06

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:35.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.