Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to map Fn+F2 to < and Fn+F3 to >, and leave all remaining keys intact. And by mapping I mean so that it will actually type those keys, and not just pretend I typed the key labeled <.

Scenario: I have an English keyboard. I have set the keyboard map to Norwegian, however, now there is no way for me to type < and >, since they are nowhere in that keymap. You see, I am one key short and then something has to go.

With the registry hack that SharpKey uses, I can remap any key on the keyboard to any other key on the keyboard - but that does not help. All you are doing is saying "key number X will be treated as key number Y", and you are back to square one.

With Microsoft Keyboard Layout creator, I can sort of to this, but only with the "non-special" keys. I can not even reassign Caps Lock, which would actually have been sufficient for my purposes.

Is there a way of achieving this? Either mapping Fn+F2 to < and Fn+F3 to >, or mapping caps lock to < and shift+caps lock to > would be fine.

share|improve this question
    
+1 looks like you've researched this well to have run into MS KLC.. and see also to see that many programs have a limitation you wrote there.. working like you say , I recall something like that, though didn't try with caps lock and MS KLC was ok for my purposes(and i think it does treat caps as a special key). Have you tried this though, usnetizen.com/fix_capslock.php it came from googling about remapping caps lock. I don't know if the suggestion on that link has same problems though as you mention with regular remapping programs like sharpkey, it may do, but maybe try it out –  barlop Feb 2 '12 at 22:35
add comment

1 Answer

up vote 5 down vote accepted

You can accomplish this using AutoHotkey.

Here is a quick script:

File: Signs.ahk

#,::
Send {Asc 060}
return

#.::
Send {Asc 062}
return

When ran, this will allow you to send < and > by simply pressing the following keys:

  • WinKey+, to send a <
  • WinKey+. to send a >

NOTE: You do not need to map it to the WinKey, you can use Ctrl, Alt or any combination of those keys therein. Documentation for that can be found at the following KB article: Send/SendRaw/SendInput/SendPlay

You simply create the file w/ the .ahk extension, and execute it (or Right Click -> Open With... -> AutoHotkey.

This works (I tested it by switching my keyboard layout to ND and testing it. The reason this works is because AutoHotkey can send the ASCII equivalent to the < and > properly to any window that accepts that type of input.

I mapped them that way simply because on the English keyboard, they are on the same keys at those listed, but you can map them to whatever. However, i do notice that F1 through F12 will not work, given that the ND keyboard layout has no idea what those are properly.

share|improve this answer
1  
Beat me to it! I use AutoHotkey religiously. :) –  iglvzx Feb 2 '12 at 23:30
    
IT ACTUALLY WORKS! –  Christian Jonassen Feb 3 '12 at 2:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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