I want somehow to have an extra turn off functionality on the laptop. Therefore, I am asking the question how to turn off the laptop from an external source (ex. Mouse click). I have seen some suggestions which show to extend the power switch inside the laptop, but I wanted just to check whether it is possible to power the laptop on this way.
migrated from stackoverflow.com Sep 1 '11 at 21:54
This question came from our site for professional and enthusiast programmers.
[Although not mentioned in your question, in the comments for your question you mention that you are running Windows —DN]
Yes, you can create a desktop shortcut that will launch a command to shut down the system. You can then click the shortcut with your mouse.
I found the following at http://my.opera.com/obiwan2208/blog/system-shortcuts :
While danorton's answer is probably what you are looking for, you can turn off the computer with a single mouse click.
Using AutoHotKey, you can do just about anything. This AHK script will make the middle mouse button shutdown the computer.