home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Turn off the monitor with the remote control
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mogi_dk" data-source="post: 81875" data-attributes="member: 19223"><p>Hi again</p><p></p><p>Just change the source in GraphicContext.cs to</p><p> const uint SC_MONITORPOWER = 0xF170;</p><p> const uint WM_SYSCOMMAND = 0x0112;</p><p> const int MONITOR_ON = -1;</p><p> const int MONITOR_OFF = 2;</p><p></p><p> [DllImport("user32.dll")]</p><p> static extern bool SendMessage(IntPtr hWnd, uint Msg, uint wParam, int lParam);</p><p></p><p>And it works flawlessly!</p><p></p><p>How do I get this into the mainstream ?</p><p></p><p>/Mads</p></blockquote><p></p>
[QUOTE="mogi_dk, post: 81875, member: 19223"] Hi again Just change the source in GraphicContext.cs to const uint SC_MONITORPOWER = 0xF170; const uint WM_SYSCOMMAND = 0x0112; const int MONITOR_ON = -1; const int MONITOR_OFF = 2; [DllImport("user32.dll")] static extern bool SendMessage(IntPtr hWnd, uint Msg, uint wParam, int lParam); And it works flawlessly! How do I get this into the mainstream ? /Mads [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Turn off the monitor with the remote control
Contact us
RSS
Top
Bottom