Win7 Left CTRL and left ALT key interchange

Source: Internet
Author: User

Main reference this article: http://xyztony1985.blog.163.com/blog/static/3611782011752420104/

Thank the Yumbo Lord

Windows Registry Editor Version5.00[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout]"Scancode Map"=hex:xx,xx,xx,xx,xx,xx,xx,xx,Geneva,xx,xx,xx, -,xx, 1D,xx, 1D,xx, -,xx,xx,xx,xx,xx

Copy the above code on the Notepad. Files that are then saved in the. reg format.

Click on Execute, select Yes.

Then the reboot is done.

The following is a reference to the original text.

Key interpretation

Focus on the above code in the long string of binary, for easy analysis, split into every 8-bit line, and add line number, the result is as follows:

"Scancode Map"=Hex:xx,xx,xx,xx,xx,xx,xx,xx,Geneva,xx,xx,xx, -,xx, 1D,xx, 1D,xx, -,xx,xx,xx,xx,xx

The first two lines and the last line are fixed, all 8 0.

Line 3rd, that is, how many keys have changed, this example is 3, how to calculate? Starting from line 4th, to the very last line (although strictly speaking, the last row is not counted), each row counts 1, 4, 5, 6 rows, just 3.

The 4th line, the front and back 4 digits, respectively represents a key. In this example, the keys of the xx are mapped to 1 D,xx. , xx represents the left Alt key, 1D, andxx represents the left CTRL key.

Line 5th, in the same vein, the next line is left Ctrl mapped to left alt.

Line 6th, has been said, the last line, fixed 8 a 0. If you need to add more mappings, you can add more than 4, 5 rows on top of this line. The final result, of course, is to combine rows into one line.

Appendix

Some key mapping table, need to see all the control

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

There is also a special value of--00 00, which means nothing, if you want to disable a key, just map to 00 00.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.