Hello, I have Windows 7 x64 and I was interested in this sleep shortcut. However when I run it the computer just shuts down instead of going to sleep.
When I opened the VBS script I saw this in the code:
Code:
Dim objShell
Set objShell = CreateObject("Shell.Application")
objShell.ShutdownWindows <--- ???
set objShell = nothing
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{Enter}"
Set WshShell = Nothing So how is this supposed to be a sleep icon if the script is sending a shut down command to the computer?
What am I missing here? How can I make this shortcut work correctly and put my machine to sleep mode instead of shutting it down?
Thanks,
quanzaboy