I would like to remap certain keys but ensure that they still retain their original functions with modifiers.

For example, I want to remap F4 to mute, but I want ALT+F4 to still close applications. Is this possible?

I am currently using KeyTweak, but after remapping F4 to mute, even ALT+F4 just mutes volume.

Edit: I'm running a PC with Windows 10 home. I have full admin rights.

EDIT (9 months later):

I have recently purchased a laptop with a rather small keyboard. I don't have home or end keys. I'd like to remap the keyboard in the following manner:

  • [ and ] retain their original functions.
  • shift + [ or] enter curly brackets as they're supposed to.
  • alt + [ or ] work as home and end respectively.

I have been unable to find any solutions on the internet. If the solution is to run some sort of a script in the background, it must not be too resource intensive.

  • 2
    Maybe you've already tried this, and if so, I apologize, but have you tried using KeyTweak to explicitly map Alt+F4 (back) to "close application"? – bjkeefe Feb 7 '17 at 20:02
  • @bjkeefe I don't think KeyTweak has the functionality to remap key combinations... – undo Feb 11 '17 at 8:48
  • I have not tried it personally, but I've heard good things from friends about AutoHotKey. (autohotkey.com) Following links, starting with "What is it?" on the home page, and then "Key Binds," it looks like you can use AHK to assign function keys without changing the Alt+... meaning. Lots of help with AHK available through Googling, too. Good luck! – bjkeefe Feb 12 '17 at 19:09

I think autohotkey will do this. It'd look something similar to the following:

If GetKeyState("LAlt", "P")
    Send +{CloseWindow}
    Send {Mute}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.