Use reshack to modify the definition of the shortcut key in the program

Source: Internet
Author: User

Some netizens mentioned how to modify the system shortcut key: http://community.csdn.net/Expert/topic/4995/4995427.xml? Temp =. 1666681.

Of course, we can use tools such as hot keyboard pro.

Anyone familiar with Windows application design knows that most program shortcut keys are defined by menus and an "accelerator" is automatically generated. Therefore, we only need to modify program resources, the corresponding menu and accelerator content can be completed.

The following section only describes how to use reshackto modify the definition of the shortcut key in the notepad.exe program, and replace the copy and paste keys (for example, exchange keys) to meet the requirements for changing the shortcut key.

Reshack,notepad.exe (% WINDIR %/system32 directory) in the ghost program. Change the shortcut key for copying and pasting and change it.

1. Use reshackto open notepad.exe. We can see the notepad menu and the definition of copying and pasting in the shortcut.

We can see that the copied shortcut key ID is 769, And the paste is 770.

We found the definitions of 769 and 770 in the accelerator, which are vk_c and vk_v respectively, and used the control key. This is what we are familiar. Therefore, you only need to change the VK key.

2. modify the content and compile the script. Modify the content so that the copy and paste operations are swapped. After modification, press the "compile script" button to save the changes:

Vk_v, 769, control, primary key
Vk_c, 770, control, primary key

Menuitem "Copy (& C)/tctrl + V", 769, grayed
Menuitem "paste (& P)/tctrl + C", 770, grayed

Of course, you can also modify the VK key value corresponding to the express connect number in the accelerator based on the actual shortcut key you want. For example, you can define the accelerator Value of "copy" as 769 as vk_r, you can use Ctrl + R.

3. After compiling the script, save the file as another one and use the saved program to use the new shortcut key.

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.