If you are looking for software to use, go to Huajun Software Park! software release

How to use AutoHotkey - How to use AutoHotkey to customize copy and paste keys

Author: Xiao Hulu Date: 2020-12-05

AutoHotkey
AutoHotkey-2.0.10 official version

System assistance Storage size: 2.83 MB Time: 2022-10-21

Software introduction: AutoHotkey is a simple and powerful hotkey scripting language. Users can combine keyboard, mouse, and even game joystick movements and clicks...

Download now

Many friends say that they still don’t know how to use AutoHotkey to customize the copy and paste keys? So today I will bring you a method to use AutoHotkey to customize the copy and paste keys. Friends in need can take a look. I hope it can help. To all my friends.

First, download and install AutoHotkey on your computer. After installation, create a new folder under the C drive to store the shortcut key definition files. Here, take the example of creating a new Auto folder under D:Program Files. In the Auto folder, right-click and select New. Click AutoHotkey Scrip to create a new AutoHotkey.ahk file. As shown in the picture

How to customize copy-paste keys with AutoHotkey
How to customize copy-paste keys with AutoHotkey

Name the new AutoHotkey file auto.ahk. As shown in the picture

How to customize copy-paste keys with AutoHotkey

Select auto.ahk, right-click and select Edit Script to edit auto.ahk. As shown in the picture

How to customize copy-paste keys with AutoHotkey

Delete the code that comes with auto.ahk, copy the following code to auto.ahk, save and close.

#NoTrayIcon

!s::

send,^{c}

return

!a::

send,^{v}

return

F8::

msgbox,4100,Exit successfully, hotkey to exit!,1

exitapp

return

F8 is defined here as the hotkey to terminate. As shown in the picture

How to customize copy-paste keys with AutoHotkey
How to customize copy-paste keys with AutoHotkey

After saving auto.ahk, select the file in the folder, right-click the mouse, and click Compile Script. An auto.exe executable file will be generated in this folder. As shown in the picture

How to customize copy-paste keys with AutoHotkey
How to customize copy-paste keys with AutoHotkey

Double-click to run auto.exe. Nothing is reflected in the foreground, but it is already running in the background. You can check that auto.exe is running through the task manager. Try alt+s to copy and alt+a to paste. As shown in the picture

How to customize copy-paste keys with AutoHotkey

If you want to terminate the shortcut key, you can press F8 to terminate, or directly end the auto.exe process in the task manager. As shown in the picture

How to customize copy-paste keys with AutoHotkey

The above is the method brought by the editor to use AutoHotkey to customize copy and paste keys. Friends who don’t know how to do it should hurry up and learn it.

Related articles