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?

3
  • I thought this was dupe as well, from the question title alone. However, this asker wants to know specifically about using those other useless buttons on his uber-extended keyboard.
    – JMD
    Nov 19, 2009 at 21:11
  • what brand and model of keyboard?
    – Snark
    Nov 19, 2009 at 21:13
  • The keyboard that came with my eMachines computer...Keyboard Model# KB-9908
    – Patriot
    Nov 19, 2009 at 21:15

5 Answers 5

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.

4
  • @Revolter - You win the checkmark. A great piece of software, but I'm having one helluva time finding the right keyboard driver. Although my computer is an eMachines, the motherboard has been replaced. Googling the drive # gets lots of links. Haven't found one yet that works without trying to add something else to my computer. But it's a fun project so far. However, I've spent too many hours on it already. Don't know if it's worth the effort to continue, just to remap one stinking key. But I can see "Keytweak" coming in handy down the road. Thanks a million.
    – Patriot
    Nov 20, 2009 at 13:24
  • According to virustotal.com, Key Tweak does have a trojan :(. Here is the analyzed result of the installer virustotal.com/file-scan/…
    – Nam G VU
    Oct 7, 2010 at 23:59
  • 1
    Neither link works any more.
    – gvee
    Dec 19, 2017 at 8:48
  • Confirming dead link
    – G-.
    Feb 19, 2019 at 15:45
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.

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

1
  • I like it! Neat
    – Guy Thomas
    Nov 19, 2009 at 21:38
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.

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?

1
  • The one that came with my eMachines computer, Keyboard model # KB-9908
    – Patriot
    Nov 19, 2009 at 21:08

Not the answer you're looking for? Browse other questions tagged .