sleep shortcut

Page 2 of 2 FirstFirst 12

  1. Posts : 72,058
    64-bit Windows 11 Pro for Workstations
       #11

    You're welcome. :)
      My Computer


  2. Posts : 2
    Windows 7 Home Premium
       #12

    Brink said:
    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


  3. Posts : 72,058
    64-bit Windows 11 Pro for Workstations
       #13

    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


  4. Posts : 29
    Windows 7 Ultimate x64 (SP1)
       #14

    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
      My Computer


  5. Posts : 72,058
    64-bit Windows 11 Pro for Workstations
       #15

    Hello Quanzaboy,

    I would recommend to use either shortcut in the newer tutorial below for Windows 7 instead. :)

    Sleep Shortcut - Create

    Hope this helps,
    Shawn
      My Computer


  6. Posts : 29
    Windows 7 Ultimate x64 (SP1)
       #16

    Brink said:
    Hello Quanzaboy,

    I would recommend to use either shortcut in the newer tutorial below for Windows 7 instead. :)

    Sleep Shortcut - Create

    Hope this helps,
    Shawn
    Thanks! Worked perfectly! :)
      My Computer


  7. Posts : 72,058
    64-bit Windows 11 Pro for Workstations
       #17

    You're most welcome. :)
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:15.
Find Us