Is there a way to put a computer to sleep somehow other than clicking start, then sleep?
I am using a shortcut to this right now:
C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0
but it doesnt do the same thing as clicking "Sleep" in the start menu.
I need a piece of C++ code, vbs script, shortcut key, or any way to trigger sleep mode, or trigger the default power button function. Can anyone help?