Is there a way to put my PC in sleep mode with a button?

TreaX

Honorable
Jan 7, 2014
1
0
10,510
On my last keyboard I had a button that put my PC automatically into sleep mode. The new one doesn't, however it has macro so I wanted to make a keybinding for it. But I don't know if there's actually a way to activate sleep mode with a key binding (CTRL + ALT + S for example).
 
depends on your keyboard software and how it handles macro''s

but try this.
Rundll32.exe Powrprof.dll,SetSuspendState Sleep
as the macro instruction

it runs an external dll powrprof.dll
giving it which instruction to run setsuspendstate with the command sleep.

just attach the instruction to the keys pressed and it should work.

 
You could also make a shortcut. I made shortcuts to my Power down and restart buttons and placed them on my Start bar on my desktop, So Its always 1 click away.

http://www.howtogeek.com/77061/how-to-add-shutdown-restart-sleep-to-the-windows-8-metro-start-screen/