NotebookForums.com › Forums › General Notebook Discussions › Windows Operating Systems & Software (Windows 8 questions here) › How do you execute a command or program when you closeyh our lid?
New Posts  All Forums:Forum Nav:

How do you execute a command or program when you closeyh our lid?

post #1 of 9
Thread Starter 
How do you execute a program or a command from a program, when you close your laptop lid?

Is there a background program that will do this for me?
post #2 of 9
Do you mean go into standby or shutdown? Rt click on desktop->properties->screen saver tab->click power->click advanced tab.
post #3 of 9
Quote:
Originally Posted by Mercer
How do you execute a program or a command from a program, when you close your laptop lid?

Is there a background program that will do this for me?
Umm, normally you don't. But if you mean with a external keyboard and monitor, then you will need to change the power settings when the lid is closed. The previous post will get you where you need to be.
post #4 of 9
Thread Starter 
No, isn't there like a notebook program that tells you stuff like battery life, options when you close your lid?

I don't want to goto standby or hiberate, I just want to do a lockout (start->run: rundll32 user32.dll LockWorkStation) so my computer will still downloading, or run programs, but people can't get on.
post #5 of 9
ctr-alt-del, lock computer. Do like I said above and for "When I close the lid of my portable computer" - do nothing. Then it is locked, lid closed and still running.
post #6 of 9
If you want to know the technical way of doing what you want...

http://msdn.microsoft.com/library/de...ad0ec4.xml.asp

Basically, it looks like the event is available at the driver level, but not at the application level. So you have to write a driver to capture this callback, then pass it along, somehow, to an application which will do what you want.
post #7 of 9
I'm terrified of melting my lcd by doing that. That doesnt happen does it? I know that 12 inch ibooks were prone to that. BUt maybe it was just those macs.
post #8 of 9
Quote:
Originally Posted by wbeck
I'm terrified of melting my lcd by doing that. That doesnt happen does it? I know that 12 inch ibooks were prone to that. BUt maybe it was just those macs.
Enable screen saver or display power management at the same time you lock the keyboard and it should be just fine.
post #9 of 9
windows key + L locks it quickly
New Posts  All Forums:Forum Nav:
NotebookForums.com › Forums › General Notebook Discussions › Windows Operating Systems & Software (Windows 8 questions here) › How do you execute a command or program when you closeyh our lid?