Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Forums > Tutorials

Vista Tutorial Categories Network & Internet Tutorials File & Folder Settings Tutorials Taskbar & Start Menu Tutorials Performance & Maintenance Tutorials General Tips Tutorials Programs & Features Tutorials Context Menu Tutorials Shortcut Tutorials Security & System Tools Tutorials Parental Controls Tutorials User Account Tutorials Hardware & Drivers Tutorials Appearance & Personalization Tutorials Backup & Restore Tutorials Music, Photo, Video and Media Tutorials Power Management Tutorials

Sleep Shortcut

Poll: Did this Tutorial help and work for you?
Poll Options
Did this Tutorial help and work for you?

Comment
 
Tutorial Tools Display Modes
<!-- google_ad_section_start -->Sleep Shortcut<!-- google_ad_section_end -->
Sleep Shortcut
How to Create a Sleep Shortcut on the Desktop in Vista
Published by Brink
07-03-2008

How to Create a Sleep Shortcut on the Desktop in Vista

Information
  This will show you how to create a Sleep shortcut used to put your computer into sleep (not hibernate) mode when clicked on.
NOTE
  If you would like to place this shortcut in Quick Launch, then see Option Three in this link for how: How to Use Quick Launch in Vista
Tip
  If you would like to create a keyboard shortcut for this shortcut, then see: How to Create a Keyboard Shortcut for a Program in Vista
RELATED LINKS:
Here's How:
1. Click on the download button below to download the Sleep Shortcut.zip file.
2. Click on Save and save it to the Desktop.



3. Right click on the Sleep Shortcut.zip (on desktop) and click Open.
4. Click Allow for UAC prompt.
5. Select and extract both the Sleep shortcut and Sleep Shortcut Folder to the desktop.
6. Open a Windows Explorer window and navigate to C:\Program Files.
NOTE: Not in the C:\Programs Files (x86) folder for 64 bit Vista users.

7. Right click on the Sleep Shortcut folder (on desktop) and click Cut, then right click on a empty space in the Windows Explorer window (step 6) and click Paste.
NOTE
  The Sleep Shortcut folder has the Sleep.vbs scipt file in it. This is the contents of this vbs script:
Code:
Dim objShell 
Set objShell = CreateObject("Shell.Application") 
objShell.ShutdownWindows
set objShell = nothing
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{Enter}"
Set WshShell = Nothing
A) Click Continue for Destination Folder Access Denied prompt.
B) Click Continue for UAC Prompt.
8. Put the Sleep shortcut (on desktop) where you would like for easy use. (See the NOTE at the top of the tutorial)
NOTE
  If you would like to use a icon of your own instead, then see: How to Change a Shortcut Folder or File Icon in Vista for how.
9. You can now delete the Sleep Shortcut.zip (on desktop) file if you like.

That's it,
Shawn

CREDIT TO: sidney1st for providing a better way to do this with a VBS script.
Thank you.
Published by
Brink's Avatar
Administrator
Join Date: Apr 2007
Location: Texas, USA
Posts: 14,743
Rep Power: 200
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Applies to
All Vista Versions
64 Bit & 32 Bit

Rating
Skill Level
20%20%20%
1

Old 07-03-2008  
spinedoc
Newbie
spinedoc is on a distinguished road
 
Join Date: Jul 2008
Vista Ultimate 32 and x64
Posts: 5

Re: Sleep Shortcut

This isn't the same sleep that Vista has on the Windows button/menu. Anyone have any way to shortcut the shallower sleep that Vista uses?
spinedoc is offline   Reply With Quote
Old 07-03-2008  
Brink
Administrator
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
 
Brink's Avatar
 
Join Date: Apr 2007
Vista x64 Ultimate SP1
Posts: 14,743

Location: Texas, USA
Re: Sleep Shortcut

Hi Spinedoc,

Welcome to Vista Forums.

This shortcut is for putting the computer to Sleep, not hibernate or hybrid. It is the same as the normal lighter sleep mode for when you click on Sleep in the Start menu.

Shawn

There are no dumb questions, just the people that do not ask them.
Please post feedback to help others.
Brink is offline   Reply With Quote
Old 07-04-2008  
spinedoc
Newbie
spinedoc is on a distinguished road
 
Join Date: Jul 2008
Vista Ultimate 32 and x64
Posts: 5

Re: Sleep Shortcut

Thanks Brink. The shortcut on the windows start button menu for "Sleep" puts the computer in a very light sleep mode where I can press the keyboard or move the mouse and it wakes it up, it won't shut down firefox for example. Your Sleep shortcut puts it into some kind of deeper sleep where windows asks to shut down firefox and other programs, and it won't wake up with keyboard or mouse movement.

I would love to get a shortcut to the Sleep that is on the windows start menu.
spinedoc is offline   Reply With Quote
Old 07-04-2008  
sidney1st
Member
sidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond repute
 
sidney1st's Avatar
 
Join Date: Apr 2008
Ultimate SP1 x64 & x86
Posts: 971

Location: Paris
Re: Sleep Shortcut

Hi,
You do not have light sleep mode, you have just one sleep mode which is called Sleep!
Then if you want a deeper sleep mode, it is called "hibernation".
And to finish, you have the super sleep-hibernation-top mode which is called "Shutdown"

sidney1st is offline   Reply With Quote
Old 07-04-2008  
spinedoc
Newbie
spinedoc is on a distinguished road
 
Join Date: Jul 2008
Vista Ultimate 32 and x64
Posts: 5

Re: Sleep Shortcut

Quote:
sidney1st
View Post
Hi,
You do not have light sleep mode, you have just one sleep mode which is called Sleep!
Then if you want a deeper sleep mode, it is called "hibernation".
And to finish, you have the super sleep-hibernation-top mode which is called "Shutdown"
If that's the case then Brinks shortcut is to hibernate. If I press windows menu button then sleep, the PC sleeps unless you type on the keyboard or move the mouse. If I use Brinks shortcut it will only power back on if I press the power button. Additionally sleeping thru windows doesn't force me to shut down programs, Brinks shortcut does.

So while I agree with you that there is only Sleep and Hibernation, it seems that Brinks shortcut is to hibernate and not sleep.
spinedoc is offline   Reply With Quote
Old 07-04-2008  
sidney1st
Member
sidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond repute
 
sidney1st's Avatar
 
Join Date: Apr 2008
Ultimate SP1 x64 & x86
Posts: 971

Location: Paris
Re: Sleep Shortcut

Quote:
spinedoc
View Post
Additionally sleeping thru windows doesn't force me to shut down programs, Brinks shortcut does.

So while I agree with you that there is only Sleep and Hibernation, it seems that Brinks shortcut is to hibernate and not sleep.
Both sleep and hibernate do not shut down programs, they allow to restart the machine exactly in the state it was before going in either mode.
The difference is only the way the "state" of the machine is saved.
In sleep mode it is saved in the RAM, in hibernate mode it is saved on the disk, which will allow you for example to unplug your machine.
If you use the hybrid mode, it is saved in RAM and on the disk.
To shut down programs you have to shut down the computer.

sidney1st is offline   Reply With Quote
Old 07-04-2008  
spinedoc
Newbie
spinedoc is on a distinguished road
 
Join Date: Jul 2008
Vista Ultimate 32 and x64
Posts: 5

Re: Sleep Shortcut

Ok, let me put this a bit simpler. When I use Brinks sleep shortcut windows wants to, for example, shut off firefox. Additionally when I use Brinks sleep shortcut windows will not start up again with a keyboard press or a mouse movement.

I understand you have an overwhelming desire to educate me on sleep versus hibernate. But I'm not arguing that, I'm only asking if it's possible to have a shortcut for the sleep mode on the windows menu that does EXACTLY what the sleep button on the windows menu does (which is specifically to not close programs and to restart windows when I move my mouse/keyboard).

Although maybe, for some odd reason, the sleep on my menu functions differently or there is a setting that is changed? Or is there some issue with Brinks shortcut and my PC, is it not supposed to act like this? Maybe there is some kind of conflict.


Quote:
sidney1st
View Post
Quote:
spinedoc
View Post
Additionally sleeping thru windows doesn't force me to shut down programs, Brinks shortcut does.

So while I agree with you that there is only Sleep and Hibernation, it seems that Brinks shortcut is to hibernate and not sleep.
Both sleep and hibernate do not shut down programs, they allow to restart the machine exactly in the state it was before going in either mode.
The difference is only the way the "state" of the machine is saved.
In sleep mode it is saved in the RAM, in hibernate mode it is saved on the disk, which will allow you for example to unplug your machine.
If you use the hybrid mode, it is saved in RAM and on the disk.
To shut down programs you have to shut down the computer.
spinedoc is offline   Reply With Quote
Old 07-04-2008  
spinedoc
Newbie
spinedoc is on a distinguished road
 
Join Date: Jul 2008
Vista Ultimate 32 and x64
Posts: 5

Re: Sleep Shortcut

Quote:
sidney1st
View Post
Yes of course, but in that case you cannot go in hibernate mode which is IMHO a problem.

I googled a bit and did not found anything for the "real" sleep mode for Vista, so i made a small vbscript which maybe can work on all computers (i do not know as i made it in 2 minutes and works here), pls try it and let me know.
Tried this one too, same thing. Windows asks me if I want to shut down firefox (only program tested so far), I get the hard disk churning then it all shuts down. It will only start up again with a press of the power button.

Somehow I think both of these programs are hibernating my PC, I'm not sure why.
spinedoc is offline   Reply With Quote
Old 07-05-2008  
Brink
Administrator
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
 
Brink's Avatar
 
Join Date: Apr 2007
Vista x64 Ultimate SP1
Posts: 14,743

Location: Texas, USA
Re: Sleep Shortcut

Strange. I tested the shortcut with IE7 and Firefox running when I used it and my computer went to sleep and awoke when I moved the mouse or pressed a key on the keyboard.

When you click on Sleep in the Start menu, do you get the same behavior as you see with the shortcut, or does it behave like it should as I described above?

Shawn

There are no dumb questions, just the people that do not ask them.
Please post feedback to help others.
Brink is offline   Reply With Quote
Comment

Tags
shortcuts, sleep

Tutorial Tools
Display Modes


Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
Shortcut to logoff then put pc in sleep Ron P Vista General 1 11-28-2007 02:46 PM
How do you change the target of the shortcut or shortcut command l Catie Vista General 2 08-18-2007 12:10 PM
desktop sleep shortcut dwolf Vista General 5 05-08-2007 06:19 PM
Desktop sleep shortcut ? dwolf Vista General 3 05-02-2007 10:37 AM
Removing "Shortcut" word after creating a shortcut? nLinked Vista file management 9 04-08-2007 12:27 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008
Tutorial powered by GARS 2.1.8m ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49