5

Possible Duplicate:
How can I remap a keyboard key?

I have a mute button on my keyboard, which I use a lot. I also have three buttons I never use...Internet...Email...Search. Is there a hack that a novice user like me can do to get one of those three useless buttons to put my computer into "standby" mode?

Patriot
  • 671

5 Answers5

6

Okay I found it!

Here(archived), is all what you can find about key remapping. Keytweak(archived) work fine for me, is a free keyboard remapper for Windows NT/2000/XP/Vista/Win 7. It makes use of Microsoft's Scancode Map registry key to remap your keyboard.

alt text

This thing lets you remap one of your Internet / Email or Search keys to a sleep key !

It may not work for your keyboard model, make sure you have the latest driver.

Stephen
  • 123
2

I don't know a way to remap an existing key such as the shortcut ones - however you can do the following :

Open up notepad or any text editor and write :

%windir%\system32\rundll32 powrprof.dll,SetSuspendState

Save this anywhere (can be in any folder) as anything you like as long as it has an extension of .cmd or .bat

Next, make a shortcut to this script from anywhere and right click it. Set up a shortcut key - can be anything, but try not to use something that another application does - using a combination (2 or more) of Ctrl+Alt+Shift along with another key.

Now, whenenver you type this combination, you should go in to suspend.

alt text

Gareth
  • 19,080
William Hilsum
  • 117,648
2

If you're willing to put a little time into it, you may be able to pull it off with AutoHotkey. See How to catch special application keys?

Once you have the proper code for your key, I think you would put something like this in the AHK file:

[keycode]::Run %windir%\system32\rundll32 powrprof.dll,SetSuspendState

To build on Wil's answer, that is.

Nathaniel
  • 4,386
1

In many cases, Sharpkeys should be able to recognize the keys. This isn't really a separate application to interpret your keys, it's really a frontend for remapping the keys in the registry, which means you only need to do it once, and can then remove the program if you don't want to do it again. It could do with better roll-back features, however, so back up your registry before using it.

With this solution, you should not have to worry about your keyboard driver or anything like that.

Emil
  • 495
0

Unless you have another app installed to hook onto the keystroke, it looks as though default XP doesn't have one.

Linky: MSFT XP Shortcuts

With regard to hardware, what keboard are you using?

Stevoni
  • 421