ComputersSoftware

AutoHotKey: how to use? AutoHotKey: how to assign mouse keys. Advice of specialists

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 with the purpose of this software, its capabilities and benefits.

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 work and system tasks.

The program is built in its own language, which allows you to easily configure and reassign hotkeys, include buttons like mouse and joystick. Scripts that are needed for this are represented by text files with a special extension .ahk. If you need all this to be an extension of .exe, there is a special software bundle for this. It can be easily launched on any computer and operating system.

For what?

So, why do we need to figure out how to use AutoHotkey? The program is used as commands that mimic the actions of the keyboard, mouse or gamepad. You can also configure the simulation of the start of the program, change its interface. Scripts are an excellent tool that will help in working with window, file, folder controls. You can use clipboard templates and system registers. All commands are assigned using hot keys.

It is not difficult to guess that this program has enough tasks. But there are those that are most often used by users. For example, reassign keys in separate applications or across the entire system. As mentioned earlier, you can control the mouse through the keyboard or gamepad. You can monitor the system, configure the automatic activation of some desired commands. To the latter case are various reminders.

Installation

It's 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. Install it is not difficult, you need only a couple of clicks.

First attempts

Experts say that the script can be created and launched 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 have a window in which the "New" line will appear. Clicking on it, you will see AutoHotkey Script. An empty file will appear on the desktop without a script. If the document still does something, safely remove all unnecessary. You will need this file for 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.

Job

So that you understand how this all works, try to write the following code into the document: #space :: Run www.site.com. Here you can enter any site that you like. Now in order: the "grid" in this case indicates to the program what needs to be clamped. Note that there is a difference between the commands "pinch" and "click".

Next is space, which means that the command will be accepted if the Windows keys and "Space" are clamped. Next, the line has two colon characters. This is necessary in order to separate the combination of buttons from the body of the script.

It's not hard to guess that the word Run is a command that launches something. There may be, as in our case, the address on the site, or the launch of the file that you need.

Activation

Now that the script is finished, you need to understand what to do with it. 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 if our script is working, you need to look at the bottom panel on the desktop. Somewhere next to the clock is the program icon. To verify the correctness of the data, try to hold down the Windows key, press the Spacebar and release it. You should open the web browser and the site you specified. Obviously, you can assign several macros. Everyone will get his icon in the tray.

rules

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

Mouse and keyboard

Find out how to assign mouse keys to AutoHotkey easily. In general, this is done approximately the same as described above. Just need to search the Internet for successful and convenient commands. For example, to replace a known combination of hot keys Alt + Tab, it will suffice to prescribe: WheelDown :: AltTab or WheelUp :: ShiftAltTab.

In general, understanding how to assign mouse keys to 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, too, sometimes need such combinations. They greatly simplify the game, although they are "cheating". For what game and what to do, it's up to you, 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, you can easily cope with complex designs. So it has already happened that in this game you often have to use combinations. They are needed when you need to react quickly, and not look for a set of buttons on the keyboard.

What you will use and for which teams, your business. The only point - you need to adhere to some rules. For example, start a document with a better line #IfWinActive GTA: SA: MP. Then your knowledge of how to assign keys to AutoHotkey for the game will not be in vain. The scripts will be activated only if you are in GTA.

conclusions

Working with this program should bring only one pleasure. Especially if you are with programming and coding "on you." There are many teams, different variations. Everything depends on the goals and desires of users. Also, the command parameters and additional modifications differ. With this to understand really, most importantly, understand the principle of the work of scripts and their creation.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.unansea.com. Theme powered by WordPress.