5

I have a Windows 7 keyboard that has Ctrl-LWindows-Alt bottom left. Can I switch LWindows-Alt layout to Alt-LWindows?


Thanks for the answers!

I checked, downloaded the tools and tested very briefly. I must say that Will's answer is the best for me as I don't have to do anything but drag and drop. And as it just changes the registry, I expect no resource would be used. I remapped TAB and L-Windows key to Alt (meta) so that I can use Emacs with my PC like the one with my Mac.

Gerold Broser
  • 481
  • 6
  • 25
prosseek
  • 5,794
  • 21
  • 59
  • 78

5 Answers5

9

I would use Remapkey.exe. It is available for free in the Windows Server 2003 Resource Kit.

alt text

Kev
  • 1,142
  • 2
  • 14
  • 37
William Hilsum
  • 116,650
  • 19
  • 182
  • 266
  • Nice. This would seem to be the more up-to-date version of the MKLC - I didn;t know this existed. – imoatama Sep 15 '10 at 15:49
  • +1 - I'll remember this for the next keyboard remapping question that comes up! – JNK Sep 15 '10 at 15:50
  • 1
    Note: You have to right-click remapkey.exe and choose "Run as Administrator" for it to be able to write the results to the registry. – Kev Feb 10 '16 at 15:11
8

As an AutoHotKey script:

LAlt::LWin
LWin::LAlt
yhw42
  • 2,241
  • 1
  • 24
  • 30
2

You can do this with autohotkey pretty easily.

JNK
  • 8,218
  • 28
  • 31
1

The best way to do this is with Microsoft Keyboard Layout Creator. This allows you to create custom keyboard layouts, which are then installed and can be set as the system keyboard layout.

It'd be pretty easy to create a layout with the Alt and Windows keys switched, and this method has the advantage of residing much lower in the OS than a 3rd party tool or Hotkey program. This means that when you hit Alt, the OS sees it as LWindows (and of course vice versa). This is going to be more reliable than overriding the default behaviour of a system key, which AutoHotKey seems to offer.

imoatama
  • 1,924
  • 1
  • 12
  • 9
  • Why'd this get an upvote? MKLC (as of the current version 1.4) calls such special keys "unassignable," and then, of course, does not let you assign them. – Kev Feb 10 '16 at 15:03
  • Possibly because it worked when I posted it, more than 5 years ago. – imoatama Feb 18 '16 at 04:48
  • fair enough, although it seems strange that they would have removed this functionality. – Kev Feb 18 '16 at 14:32
  • can you elaborate on how that is possible - since judging by this image of ms klc 1.4 it isn't showing the windows key http://i.imgur.com/KtbcFvF.png – barlop Apr 10 '17 at 08:28
0

See the answer to How to remap Right-Win and Right-Alt keyboard keys for information what Remapkey.exe. in @WilliamHilsum's answer does in the background (and what you easily can achieve with .reg files, the applying of which can be automated, too).

Gerold Broser
  • 481
  • 6
  • 25