I have a Microsoft keyboard that I just bought, but it has no sleep button. what it does have is 5 programmable keys that can open programs. I want to program one of the buttons to put the computer in standby mode (where the power light is flashing). what I am using right now is "Rundll32.exe Powrprof.dll,SetSuspendState Sleep" and "rundll32.exe powrprof.dll,SetSuspendState 0,1,0" but these do something different (the power light is off, not flashing) what would be a command that I would use to put the computer in standby mode?
|
feedback
|
|
Shutdown
Reboot
Logoff
Standby
Hibernate
| |||||||||||
feedback
|
|
I'm pretty sure you can find a PowerShell command to do that, save it on a script file and set your keyboard execute that. Check on google for "Powershell Standby", this looks good. | |||
|
feedback
|
|
You can also customise what the power button (the button you turn on your computer with) does. You can set it to cause hibernate, sleep or shutdown. This can be changed via power options. | |||
|
feedback
|
shutdowncommand-line program, but it looks like it only does hibernate, but not standby. – eidylon Apr 18 '11 at 20:42