How to create macros in Windows

windows10 shortcuts

All the macros are actions that are executed on a computer when you press a key combination. They can be predetermined by a program or recorded by the user himself to perform specific functions. Windows lacks its own macro editor, although it does have keyboard shortcuts with which to launch applications.

In this tutorial we will use the AutoHotkey program to be able to create our own functions and take advantage of the macros within the Windows system.

First we must get hold of the program AutoHotkey, who allows the recording of actions and associating keyboard events to them. We are talking about the famous macros, a utility that allows you to automate tasks by repeating a sequence of keystrokes, mouse movements or clicks. The objective is to develop previously configured tasks in a faster and easier way.

AutoHotkey is a free and open source tool designed to configure combinations with which certain specific tasks are carried out. Once the program is downloaded and installed, to define our own macros, we must create a file script.

A file of script it is a plain text file that contains the code necessary to execute a script. We can create it simply with Notepad and save it with the extension ahk, which is the one used by the AutoHotkey program. Another option is create it via context menu that creates the program once installed, using right mouse click> New> Autohotkey Script.

AutoHotkey

The script will be executed once we associate it with a specific key combination. The program has a very valuable help when configuring the actions that we want to carry out. In our example, we will run a command to write the text www.windowsnoticias.com when we press the keys Ctrl + Alt + O. You can see other combinations in the help, since they are very easy to apply and understand how they work. autohotkey2

Once we have written the script code, we will save it and open the AutoHotkey converter. Within the converter itself we must introduce the script file that we have created and, just below, the location where we want to save the executable file as a file .exe. As well we can define a custom icon to more easily remember its use.

AutoHotkey3

From now on, every time we run the file we have created we can use the shortcuts we have created with the AutoHotkey program.

Source: omicron.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.