Cause
Shortcut keys are very common both in Windows and OS X systems.
Commonly used shortcut keys are basically: ctrl/command+*
And the two keys on the keyboard corresponding to the location is different, command on the ALT key (with the Windows standard keyboard as the reference, the same below).
After a long period of use, the ALT key (Thumb press) is much more comfortable than the CTRL key (the little finger Press), so I want to change the key by changing the CTRL and ALT keys in the Windows Exchange.
Solve
Copy the following code on the Notepad and save it as Ctrl2alt.reg
Windows Registry Editor Version 5.00[hkey_local_machine\system\currentcontrolset\control\keyboard Layout] "Scancode Map "=hex:00,00,00,00,00,00,00,00,03,00,00,00,38,00,1d,00,1d,00,38,00,00,00,00,00
Running files
Restart your computer
Just enjoy it.
Principle
"Scancode Map" =hex:00,00,00,00,00,00,00,00,03,00,00,00,38,00,1d,00,1d,00,38,00,00,00,00,00
Long string binary, for convenient analysis, split into every 8-bit line, and add line number, the result is as follows:
"Scancode Map" =hex:
00,00,00,00,
00,00,00,00,
03,00,00,00,
38,00,1d,00,
1d,00,38,00,
00,00,00,00
First two lines, fixed 8 x 0
Line 3rd, which indicates how many mappings have been changed, this example is 3, starting from line 4th, to the very last line (although strictly speaking, not counting),4, 5, 6 rows, just 3.
The 4th line, the front and back 4 digits, respectively represents two keys, the former mapping into the latter. In this example, the keys for 38, 00 are mapped to 1d,00. 38, 00 for the left ALT key, and 1d,00 for the left CTRL key.
Line 5th, in the same vein, left CTRL maps to left alt.
Last line, fixed 8 0.
If you need to add more mappings, you can add a format encoding such as 4, 5 rows before the last row, modify the number of mappings for the third row, and finally line up the rows.
Appendix
Escape on xxTab 0FxxCaps Lock 3 axxLeft Alt - xxLeft Ctrl 1DxxLeft Shift 2AxxLeft Windows 5B e0right Alt -e0right Ctrl 1D e0right Shift $ xxRight Windows 5C e0backspace 0ExxDelete -E0enter 1CxxSpace the xxInsert theE0home -e0end 4F e0num Lock $ xxPage DownWuyiE0page up theE0scroll Lock $ xx
Another, special value: 00 00, you need to disable a key when you want to map it to 00 00
"windows Tips" Toggle keyboard keying through the registration list