INTERACT FORUM

More => Old Versions => JRiver Media Center 20 for Windows => Topic started by: Al ex on September 25, 2014, 03:39:41 pm

Title: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: Al ex on September 25, 2014, 03:39:41 pm
Ė would like to put my HTPC into sleep mode after using it. Is there a possibility to implement this?
I know I can configure Windows power settings itself to do so (currently I put them to "after 2 hours).

However, a button in GIZMO for this would just be great...
Title: Re: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: justsomeguy on September 25, 2014, 04:15:41 pm
I'm not sure it's possible to do in gizmo but theater view will work.

Go into theater view options
Click Add... External program
Make it look like the image below

(http://i109.photobucket.com/albums/n59/justsomeguy6575/MCSleep.jpg)
Title: Re: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: Al ex on September 26, 2014, 01:13:41 pm
Thanks. What will happen by doing so? Will it go into Sleep mode immediately "after last song/movie played"?
Title: Re: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: justsomeguy on September 27, 2014, 12:42:07 am
Maybe I misunderstood your question but this just adds a "button" in theater view that when selected will immediately put the computer to sleep. Doesn't matter if anything is playing or not.

I actually wrote a small program a while back that has the option to put the computer to sleep after playback stops but was intended to be used to with a 3rd party media management software but allow JRiver to be used for playback. It would actually be a very small change for me to allow it to be run from within JRiver so that it could then put the computer to sleep after playback is finished, if that was what you were actually asking for. http://yabb.jriver.com/interact/index.php?topic=65984.0 (http://yabb.jriver.com/interact/index.php?topic=65984.0)
Title: Re: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: Al ex on October 07, 2014, 05:07:30 am
Maybe I misunderstood your question but this just adds a "button" in theater view that when selected will immediately put the computer to sleep. Doesn't matter if anything is playing or not.
No this is just fine, I think this is a very valuable feature. I have added the code as you have described above, however, if I click on the button, MC jumps into the desktop mode (for a short moment, then back), but then nothing happens.
I donīt know what the issue is, but looking at the screenshot, it appears it was written for Windows 32bit? I am using Win 8.1. 64bit, so probably some minor changes are necessary?


I actually wrote a small program a while back that has the option to put the computer to sleep after playback stops but was intended to be used to with a 3rd party media management software but allow JRiver to be used for playback. It would actually be a very small change for me to allow it to be run from within JRiver so that it could then put the computer to sleep after playback is finished, if that was what you were actually asking for. http://yabb.jriver.com/interact/index.php?topic=65984.0 (http://yabb.jriver.com/interact/index.php?topic=65984.0)
Yes, that was my original intention - put it to sleep automatically, after playback has changed. Or maybe 10 minutes after the song/movie has stopped, or the last button was pressed in MC. Actually I cannot see that Windows is doing this on its own. I have setup this in the windows power option, but it seems the HTPC never goes to sleep...
Title: Re: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: dean70 on October 07, 2014, 05:25:53 am
Try C:\Windows\Sysnative\Rundll32.exe as the Program Name
Title: Re: Function for putting Windows to sleep (ideally in GIZMO)?
Post by: Al ex on November 08, 2014, 05:12:20 am
Try C:\Windows\Sysnative\Rundll32.exe as the Program Name

Thanks - this worked!