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
Support
General Support
Put HTPC to Sleep - Power button or IRSS
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="Walzing" data-source="post: 888775" data-attributes="member: 84567"><p>So it seems, I am the only person who wants to put MP to sleep by pressing the power toggle button on my remote.</p><p>Currently I am thinking about writing an addin that will do this:</p><p>[CODE]</p><p>GUIGraphicsContext.ResetLastActivity();</p><p>MediaPortal.Player.g_Player.Stop();</p><p>GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)GUIWindow.Window.WINDOW_SECOND_HOME, 0, null);</p><p>GUIGraphicsContext.SendMessage(msg);</p><p>MediaPortal.Util.WindowsController.ExitWindows(RestartOptions.Suspend, true);[/CODE]</p><p> </p><p>But right now, I have configured my HTPC to use iMon Manager only and send 'H' + 'B' when I press remote. But it seems sometimes keys are lost (H is not handled but B is).</p><p>But the user won't get feedback. So another option would be to shutdown the display (Minidisplay). It seems there is a cleanup function in minidisplay, that will shutdown the display.</p></blockquote><p></p>
[QUOTE="Walzing, post: 888775, member: 84567"] So it seems, I am the only person who wants to put MP to sleep by pressing the power toggle button on my remote. Currently I am thinking about writing an addin that will do this: [CODE] GUIGraphicsContext.ResetLastActivity(); MediaPortal.Player.g_Player.Stop(); GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)GUIWindow.Window.WINDOW_SECOND_HOME, 0, null); GUIGraphicsContext.SendMessage(msg); MediaPortal.Util.WindowsController.ExitWindows(RestartOptions.Suspend, true);[/CODE] But right now, I have configured my HTPC to use iMon Manager only and send 'H' + 'B' when I press remote. But it seems sometimes keys are lost (H is not handled but B is). But the user won't get feedback. So another option would be to shutdown the display (Minidisplay). It seems there is a cleanup function in minidisplay, that will shutdown the display. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Put HTPC to Sleep - Power button or IRSS
Contact us
RSS
Top
Bottom