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
General Development (no feature request here!)
Where is the screensaver being disabled?
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="OdieGiblet" data-source="post: 232424" data-attributes="member: 66193"><p>I've found the code below in MediaPortal.cs for disabling the screensaver. But the SC_SCREENSAVE message seems to be only called when MediaPortal is not in full screen mode. Does anybody know where the code is that says to disable the Windows screensaver while a video is playing in full screen mode?</p><p></p><p>[CODE] if (msg.Msg == WM_SYSCOMMAND && msg.WParam.ToInt32() == SC_SCREENSAVE)</p><p> {</p><p> // windows wants to activate the screensaver</p><p> if ((GUIGraphicsContext.IsFullScreenVideo) ||</p><p> GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_SLIDESHOW)</p><p> {</p><p> //disable it when we're watching tv/movies/...</p><p> msg.Result = new IntPtr(0);</p><p> return;</p><p> }</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="OdieGiblet, post: 232424, member: 66193"] I've found the code below in MediaPortal.cs for disabling the screensaver. But the SC_SCREENSAVE message seems to be only called when MediaPortal is not in full screen mode. Does anybody know where the code is that says to disable the Windows screensaver while a video is playing in full screen mode? [CODE] if (msg.Msg == WM_SYSCOMMAND && msg.WParam.ToInt32() == SC_SCREENSAVE) { // windows wants to activate the screensaver if ((GUIGraphicsContext.IsFullScreenVideo) || GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_SLIDESHOW) { //disable it when we're watching tv/movies/... msg.Result = new IntPtr(0); return; } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Where is the screensaver being disabled?
Contact us
RSS
Top
Bottom