Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Xtacybyme
67 discussion posts
anyway to add a titlebar button that can turn off power options?
I'd like a way to keep my power options (turn off display after 1 minute) but when reading in forums, etc i could click the titlebar button and leave the screen on.

possible?
i guess it would be similar to androids stay awake, or the toggles/apps that offer keep screen on once clicked, and when clicked a second time, screen turns off as set in power options.

Thanks in advance
Dec 31, 2014 (modified Dec 31, 2014)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You should be able to do this, though you'd need two TitleBar Buttons. It's possible to change the Windows Power Scheme by doing c:\windows\system32\powercfg.exe -setactive {GUID}

To get the GUID, you can do powercfg.exe -list at a command prompt.

After getting the GUID, you can put the full command into a Custom Function that you can assign to a TitleBar Button. See the attached screenshot for reference :)

Hope that helps!
• Attachment: Custom Function to Set Windows Power Scheme.jpg [145,622 bytes]
Custom Function to Set Windows Power Scheme.jpg
Custom Function to Set Windows Power Scheme.jpg
Dec 31, 2014  • #2
User Image
Xtacybyme
67 discussion posts
thanks for quick reply Keith, I'm a little confused.
all i really want to do is click button keep screen on, click button again (or second button) and turn off screen.
i tried your cmd, but not seeing an option for on/off
Thanks in advance
Dec 31, 2014  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry, it's not possible to just block the monitors from powering off, as far as I know. You'd need to create separate power schemes in Control Panel > Power Options. One for monitor sleep enabled, and another for monitor sleep disabled. Then create titlebar buttons to for each one so that you can switch between them.
Jan 2, 2015  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)