Solved sleep shortcut

nikost4

New member
Local time
9:20 AM
Messages
7
Hi

I was wandering if anyone knows how to make the sleep shortcut work in windows 7 I tried

Sleep Shortcut - Vista Forums

and

How to create a shortcut to put Windows into sleep mode - Notebook Forums and Laptop Discussion

But nether worked. The first tutorial dose work but only if you use shortcut keys and it still sets off uac every time even if I unticked the box to tell it not too. The second tut made my computer hibernate.
My computer will go to sleep when I do it manually but the auto sleep after x min doesn't work. It just makes the screen black unfortunately. Would this cause problems?
 

My Computer

OS
windos7
Hi Nikost, and welcome to Seven Forums.

On the first tutorial, right click on the shortcut and click on Properties. Under the General tab, click on the Unblock button if there. This may be the cause of UAC popping up on you for it. If it's not there, then it is already unblocked.

If you disable hibernation, then the other one should work as well.

Hope this helps,
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Sorry there was an unblock button. I was looking at the shortcut rather than the script. But the popups keep coming even once its unblocked
 

My Computer

OS
windos7

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
I followed the Vista instructions, I have UAC disabled, but the shortcut actually shuts down my computer instead of sleep.

Any idea why?
 

My Computer

OS
Win 7 Ultimate x64
CPU
Intel i7 950 OC'd @ 4.0Ghz (SpeedStep ON)
Motherboard
ASUS P6X58D-E BIOS 0303
Memory
3x2GB Patriot Extreme Viper II Sector 7 DDR3 @ 1600mhz
Graphics Card(s)
ATI MSI 5870 900mhz/1300mhz
Sound Card
Onboard Realtek ALC889
Monitor(s) Displays
2 X 24" BenQ G2412HD
Screen Resolution
1920x1080p
Hard Drives
Intel X25-M 80 GB (SSD)
W.D. Caviar Black 1TB (SATA)
Seagate Barricuda 1TB (SATA)
Seagate Barricuda 80GB (SATA)
PSU
Corsair AX850
Case
Antec 1200
Cooling
Lots and Lots of Air!
Keyboard
Razer Lycosa
Mouse
Microsoft Sidewinder
Internet Speed
25Mbps/1Mbps
Hello A320,

If you mean the sleep shortcut, then it may be going into hibernation instead of shutting down. If you press a key afterwards, does your computer resume from hibernation?

If so, then make sure that you disable hibernation for it to put your computer to sleep instead of hibernate.

Hope this helps for now,
Shawn
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hi thanks but I already have hibernation disabled. It just does a complete shut down.
 

My Computer

OS
Win 7 Ultimate x64
CPU
Intel i7 950 OC'd @ 4.0Ghz (SpeedStep ON)
Motherboard
ASUS P6X58D-E BIOS 0303
Memory
3x2GB Patriot Extreme Viper II Sector 7 DDR3 @ 1600mhz
Graphics Card(s)
ATI MSI 5870 900mhz/1300mhz
Sound Card
Onboard Realtek ALC889
Monitor(s) Displays
2 X 24" BenQ G2412HD
Screen Resolution
1920x1080p
Hard Drives
Intel X25-M 80 GB (SSD)
W.D. Caviar Black 1TB (SATA)
Seagate Barricuda 1TB (SATA)
Seagate Barricuda 80GB (SATA)
PSU
Corsair AX850
Case
Antec 1200
Cooling
Lots and Lots of Air!
Keyboard
Razer Lycosa
Mouse
Microsoft Sidewinder
Internet Speed
25Mbps/1Mbps
I just tested it on my Windows 7 and it put it to sleep.

When you download the files, be sure to unblock the shortcut and VBS file in the Sleep Shortcut folder, then copy the Sleep Shortcut folder into the C:\Program Files folder.

Unblock.jpg


UPDATE:
It appears that in Windows 7, you will need to make sure that the Start Menu power button is set to Sleep for the shortcut to work as well.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Last edited by a moderator:

My Computer

OS
Win 7 Ultimate x64
CPU
Intel i7 950 OC'd @ 4.0Ghz (SpeedStep ON)
Motherboard
ASUS P6X58D-E BIOS 0303
Memory
3x2GB Patriot Extreme Viper II Sector 7 DDR3 @ 1600mhz
Graphics Card(s)
ATI MSI 5870 900mhz/1300mhz
Sound Card
Onboard Realtek ALC889
Monitor(s) Displays
2 X 24" BenQ G2412HD
Screen Resolution
1920x1080p
Hard Drives
Intel X25-M 80 GB (SSD)
W.D. Caviar Black 1TB (SATA)
Seagate Barricuda 1TB (SATA)
Seagate Barricuda 80GB (SATA)
PSU
Corsair AX850
Case
Antec 1200
Cooling
Lots and Lots of Air!
Keyboard
Razer Lycosa
Mouse
Microsoft Sidewinder
Internet Speed
25Mbps/1Mbps
You're welcome. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
If you disable hibernation, then the other one should work as well.
Hello guys!
I read the forum for a while already, and it is oh so helpful!, but it is my first post, so welcome everyone!

Is disabling hibernation equal to getting rid of the Hybrid Sleep?
 

My Computer

OS
Windows 7 Home Premium
CPU
Intel 2 Duo E7500
Motherboard
Gigabyte GA-EP41-UD3L
Memory
2x2GB Kingston HyperX PC2-6400 800MHz DDR2 Non-ECC
Graphics Card(s)
Gigabyte GV-NX84S512HP GeForce 8400GS 512MB ATX
Sound Card
ICH7 - integrated
Monitor(s) Displays
DELL 24" 2407WFP
Hard Drives
Western Digital Caviar Black 500GB 7200rpm 32MB Cache 3.5" SATA
WDC WD12 00BEVE-11UYT0 USB Device - backup 2.5"
PSU
Coolermaster Silent Pro 500W Modular PSU
Case
Casecom Shiny Black Mid Tower Case with Front 120mm Red LED
Cooling
standard
Hello Filipl, and welcome to Seven Forums.

It will disable the hibernate part of the hybrid sleep. If you disable hibernation, then it would be best to only use Sleep instead of Hybrid.

Hope this helps,
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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") 
[SIZE=5][B]objShell.ShutdownWindows <--- ???[/B][/SIZE]
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
 

My Computer

OS
Windows 7 Ultimate x64 (SP1)
CPU
Intel Core i5 760 OC @ 4.0GHz
Motherboard
Gigabyte GA-P55-UD5
Memory
A-Data 4GB DDR3 OC @ 1600MHz
Graphics Card(s)
ASUS ENGTX580 DCII
Sound Card
Realtek HD Audio (On Board)
Monitor(s) Displays
Dell 2209WA
Screen Resolution
1680x1050
Hard Drives
OCZ Vertex 3 SSD 120GB | WD Caviar Blue 500GB | WD Caviar Green 1000GB
PSU
600W
Case
Thermaltake Element G
Cooling
Noctua NH-D14
Internet Speed
12Mbps

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone

My Computer

OS
Windows 7 Ultimate x64 (SP1)
CPU
Intel Core i5 760 OC @ 4.0GHz
Motherboard
Gigabyte GA-P55-UD5
Memory
A-Data 4GB DDR3 OC @ 1600MHz
Graphics Card(s)
ASUS ENGTX580 DCII
Sound Card
Realtek HD Audio (On Board)
Monitor(s) Displays
Dell 2209WA
Screen Resolution
1680x1050
Hard Drives
OCZ Vertex 3 SSD 120GB | WD Caviar Blue 500GB | WD Caviar Green 1000GB
PSU
600W
Case
Thermaltake Element G
Cooling
Noctua NH-D14
Internet Speed
12Mbps
You're most welcome. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top