Windows 8 and 8.1 Forums


Lock (not put to sleep) laptop on lid close

  1. #1


    Posts : 16
    Windows 8 64-bit

    Lock (not put to sleep) laptop on lid close


    There doesn't appear to be an easy way to do this. Any ideas on how to make Windows lock but not go to sleep when a laptop lid is closed?

      My System SpecsSystem Spec

  2. #2


    Posts : 2,130
    Windows 8.0 x64


    (sorry - double post)
      My System SpecsSystem Spec

  3. #3


    Posts : 2,130
    Windows 8.0 x64


    It is for Windows 7. I don't know if it works in W8. Might be worth a shot.

    Lock windows when laptop lid is closed? | AK's Blog
      My System SpecsSystem Spec

  4. #4


    Posts : 16
    Windows 8 64-bit


    Thanks. I've seen that but I'm not willing to download something from a random website. I was hoping someone here would know of a reg edit to change an existing option.
      My System SpecsSystem Spec

  5. #5


    Posts : 2,130
    Windows 8.0 x64


    Quote Originally Posted by Monumental View Post
    Thanks. I've seen that but I'm not willing to download something from a random website. I was hoping someone here would know of a reg edit to change an existing option.
    Yeah, that is sparse. I didn't realize it was just an exe in a zip. Coding Snacks is a forum on DonationCoder that I've been on for years. Please read the instructions before posting your request. The idea of the forum is that small programs that don't require a major investment of time will be written on request. Also if an existing freeware or other software that does the job is known, it will be suggested. It's a fun thing because if your program is written and accomplishes the task, usually the author is willing to tweak it to make it easier to use or add a feature.

    Edit: See the info on joining the forums. Donations are encouraged but not mandatory.
      My System SpecsSystem Spec

  6. #6


    Posts : 2,130
    Windows 8.0 x64


    I've been doing a lot of searching. This seems to be one of those things that should be easy to detect, but isn't. Best bet is coding snacks I think.
      My System SpecsSystem Spec

  7. #7


    Posts : 2,130
    Windows 8.0 x64


    This script claims to do it (it is a forum I've been on for years so not fly by night.)

    I have to change my setting to "do nothing" to try it out. If it works adding lock call is one line of code (just send Winkey l via macro.

    Monitor Laptop Lid State - Example Scripts - AutoIt Forums
      My System SpecsSystem Spec

  8. #8


    Posts : 2,130
    Windows 8.0 x64


    I don't fully get how it works yet, but when I leave it running with my Lid Close power setting at "do nothing" the system locks when I close the lid. He must be locking it via an API call. But it does seem to work.
      My System SpecsSystem Spec

  9. #9


    Posts : 16
    Windows 8 64-bit


    Thanks. I'll give that a shot tomorrow. Hard to believe that something so simple isn't a standard feature or can't be easily implemented.
      My System SpecsSystem Spec

  10. #10


    Posts : 2,130
    Windows 8.0 x64


    To run AutoIt3 scripts and/or compile them to exe you need the free AutoIt3 tools from:
    AutoIt Downloads - AutoItScript
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Lock (not put to sleep) laptop on lid close
Related Threads
I used windows 7 for years and am having problems with windows 8, like this one. The only way I can shut it down is to press the power button...Also, if I type too fast the cursor jumps around..Never had this problem with 7.
When you go to power options in the control panel for Windows 8, under power buttons and lid >> lid close action >> on battery/plugged in, you should be able to choose a. Do nothing b. Sleep c. Hibernate d. Shut down However, sleep is not an option for me ever since I updated...
I have a the last version of the 17" MacBook Pro model with the following specs: Windows 8 64-bit Intel Core i7 2.40 GHz 16GB RAM I have from what I can tell everything working perfectly fine with the exception of the laptop properly going to sleep when I close the lid. I installed the Boot...
Every time I close the lid on my laptop and then open it later I lose internet connectivity and have to restart the computer. How can I fix this? Thank you.
I have two Windows 8 UltraBooks: a Sony Vaio SVT13126CXS, and a Samsung NP540U3C-A01UB. Both were setup fairly simply in December 2012, except that they both had the Intel/McAfee anti-theft software installed then. My kids use them for school work and typically put them to sleep when not in use. To...
My laptop automatically restarts itself 50% of the time when I close the lid. (I have it set to sleep / Hibernate) Here is a crash dump Analysis. Any ideas? Crash Dump Analysis Crash dump directory: C:\Windows\Minidump
Hey There, I have checked on google and found nothing that was related to what i am looking for. I installed Windows 8 on my laptop as well. Although in my power settings my laptop is set that when I close the lid it is to go into "sleep" mode. I've uploaded a screen shot to show you how I have...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook