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
Products
TV-Server
PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4
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="kiwijunglist" data-source="post: 1013984" data-attributes="member: 76888"><p>I made a little program that adds idle timeout detection to PS++</p><p> </p><p>[ATTACH=full]133312[/ATTACH]</p><p> </p><p>NB. This is only useful if you use the force sleep option in PS++ but want to prevent PS++ from forcing the PC to sleep when you are actively using it and MP is not running. (I have to use forcesleep with PS++ otherwise my HTPC sometimes doesn't sleep due to srvnet keeping windows awake)</p><p> </p><p>Instructions:</p><p>Extract files to the same directory</p><p>Run SLEEP_TIMER.exe</p><p>Open PS++ Config</p><p>Select process to prevent standby</p><p>choose process "DONT_SLEEP"</p><p>Save changes</p><p>Add shortcut to run sleep_timer.exe on windows startup</p><p> </p><p>How it works:</p><p>SLEEP_TIMER keeps DONT_SLEEP process running. This prevents PS++ from force sleeping. If you are physically inactive (no mouse / keypresses) for 15 minutes it stops the process.</p><p> </p><p>Code (If interested):</p><p>[spoiler]</p><p>DONT_SLEEP.ahk</p><p>[code]</p><p>#SingleInstance force</p><p>#NoTrayIcon</p><p>Sleep 900000 ; Run this process for 15 minutes then stop</p><p>ExitApp</p><p>[/code]</p><p>SLEEP_TIMER.ahk</p><p>[code]</p><p>#SingleInstance force</p><p>#persistent</p><p>#notrayicon</p><p>SetWorkingDir %A_ScriptDir%</p><p> </p><p>Process, Exist, DONT_SLEEP.EXE</p><p>ProcessExist = %ErrorLevel%</p><p>if !(ProcessExist)</p><p>Run, DONT_SLEEP.EXE ; Don't Let PS++ sleep</p><p> </p><p>SetTimer, CheckIdle, 60000 ; Check idle every 1 minute</p><p>Return</p><p> </p><p>CheckIdle:</p><p>if (A_TimeIdle > 900000) ; 15 minutes idle</p><p>{</p><p>Process, Close, DONT_SLEEP.EXE ; Let PS++ sleep</p><p>Return</p><p>}</p><p>Process, Exist, DONT_SLEEP.EXE</p><p>ProcessExist = %ErrorLevel%</p><p>if !(ProcessExist)</p><p>Run, DONT_SLEEP.EXE ; Don't Let PS++ sleep</p><p>Return</p><p>[/code]</p><p>[/spoiler]</p></blockquote><p></p>
[QUOTE="kiwijunglist, post: 1013984, member: 76888"] I made a little program that adds idle timeout detection to PS++ [ATTACH=full]133312[/ATTACH] NB. This is only useful if you use the force sleep option in PS++ but want to prevent PS++ from forcing the PC to sleep when you are actively using it and MP is not running. (I have to use forcesleep with PS++ otherwise my HTPC sometimes doesn't sleep due to srvnet keeping windows awake) Instructions: Extract files to the same directory Run SLEEP_TIMER.exe Open PS++ Config Select process to prevent standby choose process "DONT_SLEEP" Save changes Add shortcut to run sleep_timer.exe on windows startup How it works: SLEEP_TIMER keeps DONT_SLEEP process running. This prevents PS++ from force sleeping. If you are physically inactive (no mouse / keypresses) for 15 minutes it stops the process. Code (If interested): [spoiler] DONT_SLEEP.ahk [code] #SingleInstance force #NoTrayIcon Sleep 900000 ; Run this process for 15 minutes then stop ExitApp [/code] SLEEP_TIMER.ahk [code] #SingleInstance force #persistent #notrayicon SetWorkingDir %A_ScriptDir% Process, Exist, DONT_SLEEP.EXE ProcessExist = %ErrorLevel% if !(ProcessExist) Run, DONT_SLEEP.EXE ; Don't Let PS++ sleep SetTimer, CheckIdle, 60000 ; Check idle every 1 minute Return CheckIdle: if (A_TimeIdle > 900000) ; 15 minutes idle { Process, Close, DONT_SLEEP.EXE ; Let PS++ sleep Return } Process, Exist, DONT_SLEEP.EXE ProcessExist = %ErrorLevel% if !(ProcessExist) Run, DONT_SLEEP.EXE ; Don't Let PS++ sleep Return [/code] [/spoiler] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4
Contact us
RSS
Top
Bottom