Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 29, 2016, 05:09:23 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Laptop Lock only on Lid Close  (Read 2310 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,164
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Laptop Lock only on Lid Close
« on: December 07, 2013, 01:16:41 PM »
A poster on another forum wanted software that would cause his Laptop to just lock the screen rather than sleep.  After looking around it seemed not trivial to do.  I found a working script on AutoIt3 forums. I tried it on my Laptop and it worked.  If any Laptop owners think it may be handy to have the thread is here:

http://www.autoitscr...or-laptop-lid-state/

On Windows 8 you may have to stick
#RequireAdmin at the top of the script.  To run or compile you'll need the latest stable AutoIt3 available from the sames site as the forum.

Edit: note that to use it you should first set your power options for Lid Close to Do Nothing.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,407
    • View Profile
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #1 on: December 07, 2013, 03:55:25 PM »
You can also get a small program to do it from here: http://akhaliq.com/?p=198

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,164
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #2 on: December 07, 2013, 05:07:37 PM »
You can also get a small program to do it from here: http://akhaliq.com/?p=198

Thanks for the reply.  I found that but the poster was paranoid as it seemed like an exe in a zip out of nowhere.  He flat out refused to run it(for which I can't criticize him.)

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,407
    • View Profile
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #3 on: December 07, 2013, 06:31:47 PM »
Uh OK, I found it though the Microsoft forums but it's also mentioned on various others, (SuperUser, eightforums, etc), and a couple of the users had checked it out, (for nasty stuff), and it came up OK.

Still, surprising MS hasn't thought to include this functionality.
« Last Edit: December 08, 2013, 06:17:55 PM by 4wd, Reason: GFU »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,164
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #4 on: December 08, 2013, 09:35:50 AM »
Uh OK, I found it though the Microsoft forums but it's also mentioned on various others, (SuperUser, eightforums, etc), and a couple of the users had checked it out, (for nasty stuff), and it came up OK.

Still, surprising MS has thought to include this functionality.

I don't have any C# on this machine yet or I may have played around with the source that was on the blog.  Yeah you could do some cool things with the switches.  Even something simple like a delay, then sleep(if I can think of a reason for the delay.)  If nothing else the standard whoopie cushion audio file may be apropos.  :)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,164
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #5 on: December 08, 2013, 12:10:18 PM »
Sorry.  Guess I was in a silly mood due to caffeine deprivation.  Time for a coffee.   :D

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 10,251
    • View Profile
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #6 on: December 08, 2013, 01:08:26 PM »
Sorry.  Guess I was in a silly mood due to caffeine deprivation.  Time for a coffee.   :D

I'm the opposite - I get in a silly mood *after* the coffee (but then I'm not a big coffee drinker).
Tom

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,164
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #7 on: December 08, 2013, 04:11:08 PM »
Sorry.  Guess I was in a silly mood due to caffeine deprivation.  Time for a coffee.   :D

I'm the opposite - I get in a silly mood *after* the coffee (but then I'm not a big coffee drinker).

I only have a couple a day.  I discovered kafe with milk Cuban coffee in Miami.  It's the only way I like my coffee now.  It's also the only thing I know how to order in Spanish.  :)

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,407
    • View Profile
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #8 on: December 08, 2013, 04:40:40 PM »
There's two more options for locking on lid close over here: SumTips
« Last Edit: December 08, 2013, 06:18:44 PM by 4wd, Reason: My grammar is really turning to !@#$ these days. :/ »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,164
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Laptop Lock only on Lid Close
« Reply #9 on: December 08, 2013, 05:46:42 PM »
There's a two more options for locking on lid close over here: SumTips

LicLock looks like it may be cool.  The LClock is the exe that was in the zip in the blog link.  But the gui program should appeal to the user as he doesn't have to fiddle with autoit.  Thanks.  :)