AutoHotKey: how to use? AutoHotKey: how to assign mouse keys. Expert Advice

If you have a question how to use AutoHotkey, most likely, you just started to get acquainted with programming, or you need to facilitate the management of the game. Therefore, it is very important to understand not only the methods of application, but also the purpose of this software, its capabilities and advantages.

Program

So, AutoHotkey is, first of all, free software that has open source code. This is necessary for the formation of macros and automation. Thus, the application facilitates the work and system tasks.

autohotkey how to use

The program is built in its own language, which allows you to easily configure and reassign hot keys, include buttons of manipulators such as a mouse and joystick. The scripts that are needed for this are represented by text files with a special extension .ahk. If you need all this to be a .exe extension, there is special software for this in the kit. It can be easily run on any computer and operating system.

For what?

So, why do you need to figure out how to use AutoHotkey? The program is used as commands that simulate the actions of a keyboard, mouse or gamepad. You can also configure the simulation of the start of the program, changing its interface. Scripts are a great tool that will help in working with the controls of a window, file, folder. You can use clipboards and system registers with templates. All commands are assigned using hotkeys.

It is easy to guess that this program has enough tasks. But there are those that are most often used by users. For example, reassign keys in individual applications or throughout the system. As mentioned earlier, you can control the mouse through the keyboard or gamepad. You can control the system, configure the automatic activation of some desired commands. The last case includes various kinds of reminders.

Installation

It is not difficult to understand that before you learn how to use AutoHotkey, you need to download and install the program. To do this, go to the official website and download the installer from there. Installing it is not difficult, you just need a couple of clicks.

autohotkey how to assign mouse keys

First attempts

Experts say that creating a script and running it can occur in several ways. One of them is writing the script yourself in a text editor. You can use special utilities for these purposes.

As in the first case, and in the second, there is nothing complicated. After installing the program, you need to right-click on the desktop. After that, you will see a window in which there will be a line "Create". By clicking on it, you will see AutoHotkey Script. An empty file without a script will appear on the desktop. If there is still something in the document, feel free to delete all unnecessary. This file will be needed for your further work.

To write something in it, just right-click on the shortcut and select Edit Script. The document opens either in Notepad or in NotePad.

Work

To help you understand how this all works, try writing the following code into the document: #space :: Run www.site.com. You can enter here any site that you like. Now, in order: the β€œgrid” in this case tells the program what needs to be clamped. Please note that there is a difference between the β€œhold” and β€œpress” commands.

autohotkey keys

Next comes space, which means that the command will be accepted if the Windows and Space keys are pressed. Next, there are two colons in the line. This is necessary in order to separate the combination of buttons from the body of the script.

It’s easy to guess that the word Run is a command that starts something. Here it can be, as in our case, the address of the site, or the launch of the file that you need.

Activation

Now that the work with the script is finished, you need to understand what to do with all this. In general, there is nothing complicated. In order to understand how to use AutoHotkey. You need to close Notepad and save the changes. After the document is closed, open it again with a double click.

To understand whether our script works, you need to look at the bottom panel on the desktop. Somewhere near the clock there will be a program icon. To check the correctness of the data, try holding down the Windows key, press the Spacebar and release it. The web browser and the site you specified should open. Obviously, you can assign several macros. Everyone will get their tray icon.

rules

To work with the script, you need to follow some rules. For example, AutoHotkey hotkeys are the first to be written. We must not forget about paired colons. Each team that is responsible for a new task should be written on a new line. Some commands may be assigned special parameters. For them to work, they are written with a comma. If the command is long and takes several lines at once, then it ends with the word return.

Mice and keyboards

Learn how to assign mouse keys in AutoHotkey easily. In general, this is done approximately the same as described above. You just need to search the Internet for successful and convenient teams. For example, to replace the well-known hotkey combination Alt + Tab, it would be enough to write: WheelDown :: AltTab or WheelUp :: ShiftAltTab.

autohotkey for samp

In general, understanding how to assign mouse keys in an AutoHotkey or keyboard is necessary for different purposes. Most likely, you use certain combinations very often and want to reduce the time in work. You can also make scripts for the game, which is also popular.

Games

So, gamers also sometimes need such combinations. They greatly simplify the game, although they are cheating. For which game and what to do, you decide, but very often on the Internet, users are looking for AutoHotkey combinations for SAMP (GTA: San Andreas). Many experienced players claim that there are many scripts that are convenient to use on certain servers.

If you are familiar with programming, then you can easily cope with complex designs. It so happened that in this game you often have to use combinations. They are needed in the case when you want to quickly respond, and not look for a set of buttons on the keyboard.

What you will use and for which teams is up to you. The only thing is that you need to adhere to some rules. For example, it is better to start the document with the line #IfWinActive GTA: SA: MP. Then your knowledge about how to assign keys to AutoHotkey for the game will not be in vain. Scripts will be activated only if you are in GTA.

autohotkey how to assign keys

conclusions

Work with this program should bring only one pleasure. Especially if you are programming and coding for you. There are many teams, various variations. It all depends on the goals and desires of users. Command parameters and additional modifications also differ. To understand this really, the main thing is to understand the principle of scripts and their creation.


All Articles