Disabling Power button on keyboard

2

1

My keyboard has a Power button that when pressed turns off the machine. I sometimes press it by accident, and lose everything I was doing in adition to having to wait for the PC to turn off and then turn it on again.

How can I disable this button in Windows XP?

Javier

Posted 2009-10-15T16:30:05.673

Reputation: 3 053

Answers

2

You can define what the power buttons (Power, sleep, etc.) should do when pressed in the Power options. You can simply set your power button to do nothing.

This will also affect the physical power button on your computer, though.

Joey

Posted 2009-10-15T16:30:05.673

Reputation: 36 381

1Better than this is to set it to ask what to do. This way he has an escape route if the button is pressed by accident, but can still use the button on purpose as well. – eleven81 – 2009-10-15T17:19:49.833

I prefer not to be asked. Confirmations don't help for potentially dangerous operations. Consult Raskin, Cooper, &c. on that :-) – Joey – 2009-10-15T17:25:23.847

I do read the dialog boxes unlike a lot of people, so this is probably the best thing to do. I'll try to see if it works. – Javier – 2009-10-15T18:19:46.857

3

I'd try looking into AutoHotKey. The software is excellent and I use it for this exact purpose. The software is free and consumes almost nothing in resources.

I remapped the Sleep Key (in my case) to do absolutely nothing, and it's trivial to do yourself.

Just open up the script in notepad

  1. Open up the script you're using in notepad.
  2. Try entering Sleep::

If this doesn't disable it - then there a couple more steps you need to take.

  1. Install a keyboard hook by entering #InstallKeybdHook
  2. Find out what key it is by looking at the key history in the main window.
  3. Enter KEY:: where KEY is the key's name.

Redandwhite

Posted 2009-10-15T16:30:05.673

Reputation: 3 196

1

Try Tweak UI and look under the Explorer > Command Keys section for a key assignment.

MartW

Posted 2009-10-15T16:30:05.673

Reputation: 1 852

The link you have provided above no longer works. – Simon – 2013-04-25T13:42:47.000

1

Pop it off with screwdriver. Works with any OS.

sYnfo

Posted 2009-10-15T16:30:05.673

Reputation: 1 902

1Sure, because people love to tear apart their keyboard. – Gnoupi – 2009-10-26T10:56:16.740