Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controlling your monitor API in delphi or FPC
11-23-2009, 07:54 AM
Post: #1
Controlling your monitor API in delphi or FPC
//monitor on
SendMessage(Handle,WM_SYSCOMMAND, SC_MONITORPOWER,-1);
//monitor off
SendMessage(Handle,WM_SYSCOMMAND, SC_MONITORPOWER,2);
//monitor standby
SendMessage(Handle,WM_SYSCOMMAND, SC_MONITORPOWER,1);
Visit this user's website Find all posts by this user
Quote this message in a reply
11-23-2009, 08:03 AM
Post: #2
RE: Controlling your monitor API in delphi or FPC
I remember these Tongue i found out these do not work on TV's( i.e a tv that can be hooked up to your computer )

"Character is determined more by the lack of certain experiences than by those one has had."
Friedrich Nietzsche
Visit this user's website Find all posts by this user
Quote this message in a reply
11-23-2009, 08:15 AM
Post: #3
RE: Controlling your monitor API in delphi or FPC
Yea same for come monitors.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-23-2009, 09:11 PM
Post: #4
RE: Controlling your monitor API in delphi or FPC
Ha ha very good i must say !
So -1 is for on, 2 i for off and 1 i stand by !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: