INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Function for putting Windows to sleep (ideally in GIZMO)?  (Read 1816 times)

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Function for putting Windows to sleep (ideally in GIZMO)?
« 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...
Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525
Re: Function for putting Windows to sleep (ideally in GIZMO)?
« Reply #1 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

Logged

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: Function for putting Windows to sleep (ideally in GIZMO)?
« Reply #2 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"?
Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525
Re: Function for putting Windows to sleep (ideally in GIZMO)?
« Reply #3 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
Logged

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: Function for putting Windows to sleep (ideally in GIZMO)?
« Reply #4 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
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...
Logged

dean70

  • Citizen of the Universe
  • *****
  • Posts: 508
Re: Function for putting Windows to sleep (ideally in GIZMO)?
« Reply #5 on: October 07, 2014, 05:25:53 am »

Try C:\Windows\Sysnative\Rundll32.exe as the Program Name
Logged

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: Function for putting Windows to sleep (ideally in GIZMO)?
« Reply #6 on: November 08, 2014, 05:12:20 am »

Try C:\Windows\Sysnative\Rundll32.exe as the Program Name

Thanks - this worked!
Logged
Pages: [1]   Go Up