Logitech G Hub: Tutorial for creating advanced macros

Last update: 07/01/2026
Author Isaac
  • Macros in Logitech G HUB allow you to automate complex sequences on mice and keyboards for gaming and productivity.
  • G HUB offers various types of macros, automatic profiles per game, and options to save to PC or internal device memory.
  • Not all Logitech peripherals support native macros, but there are external alternatives for more basic models.

Logitech G Hub advanced macros

If you've been gaming or working on a PC for a while, you probably already know that macros are one of the best tricks for saving time and increasing speed. Many people associate them only with keyboards for repetitive tasks , but that's changed: with Logitech G HUB, you can also take macros to the next level on both gaming mice and keyboards.

Beyond dominating in shooters or MOBAs, advanced macros in Logitech G HUB are a powerful tool for automating tasks in editing, productivity, or streaming software . In this comprehensive tutorial, you'll learn how to get the most out of them: what they are, the different types available, how to create them step-by-step, how to save them to profiles and internal memory, and what to do if your peripheral is too basic.

Assigning multimedia commands on Logitech keyboards with Logi Options+
Related articles:
Assigning multimedia commands to Logitech keyboards with Logi Options+: shortcuts, gestures, and macros

What are macros and why you might care about them?

Logitech G Hub

A macro, simply put, is a sequence of actions that your PC automatically executes when you press a single key or button . This sequence can include keystrokes, mouse clicks, shortcut combinations, timeouts, and even opening applications or controlling audio.

In the realm of gaming, macros are used to chain abilities, execute complex combos, or react faster than with your fingers alone . Think of a skill rotation in an MMO, a combo in a fighting game, or a series of repetitive actions in an RTS: with a macro, they can be executed in a single tap (for example, learning to create macros in games using Power Automate ).

In professional or office use, macros become custom shortcuts that replace countless clicks and key combinations . For example, you can open your favorite editing software, load a project, apply a set of actions, or launch a group of work programs with a single button.

They also have a healthier side: reducing physical exertion and repetitive heartbeats that can lead to discomfort or injury . If you do the same sequence a hundred times a day, delegating it to a macro exercise is a relief for your hands and wrists.

And if that weren't enough, within the Logitech ecosystem, macros are integrated with other devices and profiles , allowing you to synchronize behaviors, RGB lighting, and settings for each game or application, all centralized in G HUB.

Logitech software to configure macros

Before diving in, it's crucial to understand that not all Logitech mice and keyboards use the same software or offer the same features . The brand has been around for years and has been updating its software, so depending on the model, you might find:

1. Logitech G HUB – This is the flagship software for the current gaming lineup. It allows you to create and edit advanced macros, manage game profiles, and control LIGHTSYNC RGB lighting . It's the focus of this tutorial and is used by recent peripherals like the G502 Lightspeed and the G Pro X keyboard.

2. Logitech Gaming Software (LGS) – This is Logitech's "classic" software for older generation products. While less visually appealing than G HUB, it also allows you to configure macros, buttons, and profiles . If your device isn't listed in G HUB, it will likely work with LGS.

3. Other Specific Programs and Utilities – Over the years, Logitech has released various utilities for specific models (especially older or professional ranges). In some cases, macro and profile management is shared between these tools and the main software.

The first thing you should check is which software is compatible with your mouse or keyboard . If the box isn't clear, the most reliable option is to visit the official Logitech website , search for your specific model, and check the downloads section to see if it uses G Hub, LGS, or another application.

Keep in mind that low-end or very basic devices often lack advanced software support and internal memory , so their macro options will be nonexistent or very limited. In that case, we'll look at third-party alternatives later.

Advantages of using macros with Logitech G HUB

Taking the step to configure macros isn't just a hobby; it brings very concrete benefits for both gamers and PC users . Among the clearest advantages are:

  • Time savingAutomating repetitive tasks or sequences of keystrokes gives you back seconds (or minutes) in each session. A well-thought-out macro makes a huge difference throughout the day.especially in games with many actions or in editing work.
  • Improved competitive performance: in demanding games, Macros eliminate some of the margin of human error when executing complex combinations.They don't replace your skill, but they do reduce silly mistakes caused by nerves or haste.
  • Less fatigue and physical effortInstead of pressing the same combination over and over, You delegate the repetition to the softwareThis helps prevent discomfort from repetitive strain and makes long sessions more bearable.
  • full customizationWith G HUB you can adapt each profile to what you are doing at that moment: one set of macros for video editing, another for playing your favorite shooter, another for streaming, etc. Everything changes when you switch from one profile to another.
  • Integration with the Logitech and LIGHTSYNC ecosystem: in addition to pure macro functions, You can synchronize RGB lighting and settings between your keyboard, mouse, and headset.Even taking advantage of the dynamic lighting of Windows to have a desktop and setup in harmony with your profiles.
  How to diagnose and repair memory leaks in Windows 11

What you can do with macros: not just gaming

Macros are often thought of as only useful for "crushing" Fortnite matches or other shooters, but the reality is that they're a Swiss Army knife for almost any digital task . Some useful examples:

Gaming : chaining skills, creating combos, building structures, managing inventories, or executing full rotations in your favorite MMO. Anything that involves pressing multiple keys in a row can be reduced to a single button.

Video, photo, or audio editing : In programs like Photoshop, Premiere, or digital drawing tools, you can assign macros to frequent actions (duplicating layers, applying filters, changing tools, running scripts, etc.). This greatly improves workflow efficiency.

Productivity and office : open a set of applications at the start of the day, automate shortcut combinations in office suites , manage windows, insert standard texts or templates with a single touch.

Streaming and communication : mute your microphone in Discord or OBS, trigger scenes, play sounds, or control recording . A well-placed macro on a key or button saves you a lot of clicks while you're live.

The limit is practically set by your imagination: as long as it is a sequence of actions that can be translated into keystrokes, shortcuts or commands , it is a candidate for a macro.

Types of macros in Logitech G HUB

g hub

When you create a macro in Logitech G HUB, the program prompts you to choose a behavior type for that macro . This choice determines how and when it runs. The four main modes are:

  • Without repetition: It's the simplest way. The macro runs only once each time you press the assigned key or button.Perfect for specific combos, open appsmute microphone, etc.
  • Repeat during the pulse: by holding the button down, the macro loops until you releaseIdeal for actions you want to repeat continuously while holding down the key (e.g., continuous firing or repetitive cycles).
  • ToggleIn this mode, The macro is activated when you press the button and continues running until you press it again to stop it.Useful if you want to maintain a continuous action without having to keep your finger on the key.
  • Sequence: here's the macro It has three distinct moments: when you press, while you hold, and when you release.It is the most advanced type, as it allows for different behaviors in each phase of the same pulse.

Don't worry if you're not sure at first, because in G Hub you can change the macro type after creating it . If you're unsure, starting with "No Repeat" is the best option until you're comfortable with the system.

Create advanced macros with Logitech G HUB (mouse and keyboard)

The basic workflow for creating macros in G HUB is very similar for gaming mice and keyboards, although the button layout differs. Let's look at the general process using a Logitech G502 Lightspeed mouse and a Logitech G Pro X keyboard as examples.

First, make sure you have Logitech G HUB installed and your device connected . If this is the first time, the program will detect it and add it to the main device interface.

When you enter G Hub, you'll see icons for your peripherals. Click on the mouse or keyboard you want to configure ; this will take you to its editing screen. You'll typically find three main tabs:

LightSync – for controlling RGB lighting, effects, and synchronizing with other devices.

Assignments – the key area for creating and editing macros, reassigning buttons, and managing custom commands.

Game Mode – here you can define which keys are disabled or change behavior while you are in gaming mode (for example, the Windows key).

To work with macros, go to Assignments > Macros . In the right panel, you'll see a representation of the device with all the buttons or keys that support assignments . For the mouse, the different side or top views are shown; for the keyboard, the full map with all available keys will appear.

In the macros section, click on Create new macro . G HUB will first ask you to enter a descriptive name (for example, “Mute Discord”, “RPG Combo”, “Open Photoshop”, etc.). Then, you'll see the screen where you choose the macro type from the four we mentioned earlier.

  How to install FreeBSD step by step as a desktop system

Once you've selected the type, tap "Start now" . This will open the menu with the different content options for that macro:

  • Record keystrokes: records exactly which keys you press and in what order.
  • Text and emojis: It allows you to define a text that will be written automatically. (including emoticons) when the macro is activated. You can see practical examples of this approach in text editors like Notepad with guides on text that will be written automatically.
  • AGENDA: integrates functions from compatible applications such as Overwolf, Discord or OBS, for example to mute yourself, change the scene, or perform a specific action.
  • Start of application: links a specific program to the macro; you will need specify the .exe file of the software you want to open.
  • System: offers system actions: mouse control, multimedia, volume, devices, etc.
  • late: adds pauses between pulses, configurable in milliseconds, to control There between one action and the other.

For example, in a practical case with the G502 Lightspeed, you could create a macro with this path: Start Now < Action < Record Keystrokes < G4+G5 < Save . On a G Pro X keyboard, another typical example would be: Start Now < Action < Discord < Mute Me < Record Keystrokes < F1 < Save.

Before saving, you can access the Macro Options to adjust aesthetic details such as associated color, duration, or whether to display trigger keys . This helps keep everything more organized, especially if you manage many different macros.

Once you have recorded the sequence and configured the options, all that remains is to drag the macro from the list on the left to the desired button or key on the device's schematic . It's a very visual gesture: you drag and drop onto, for example, the G4 side button on the mouse or the F1 key on the keyboard.

If you want to experiment more creatively, you can combine text and emojis with a mouse click or a system action . For example, you could send a short string of emojis and simultaneously execute a click or a lighting change, all within the same macro.

Automatic profiles and game management in G HUB

One of Logitech G HUB's greatest strengths is its automatic profile system. The program can switch profiles when it detects that you open a specific game or application , so your macros and settings adapt automatically.

Keep in mind that the automatic profiling system is disabled by default . If you enable it, when you launch a game, G HUB will load the assigned profile. If that profile is "unconfigured," you'll see that everything reverts to a state very similar to the default , because it's the starting point for the new profile.

The solution is simple: make sure each game or application has a profile with the macros and settings you need . Simply enabling the profile system isn't enough; you need to take a few minutes to configure them.

From the G Hub main menu, you can select the active profile (usually highlighted in blue) . Doing so will take you to a gallery displaying the games and programs detected on your system. You can also use the "Add game or app" option if any don't appear automatically.

For each game, you can create and save a specific profile with macros, DPI , lighting, and other parameters . Additionally, G HUB includes a "Explore Now" section where profiles shared by other users are displayed. From there, you can download pre-configured profiles and customize them to your liking , saving you time if you don't want to start from scratch.

This profile sharing encourages the community to share optimized configurations for specific titles , which is especially useful if you're starting a new game and don't quite know how to organize your macros.

Where macros are stored: PC, cloud, and internal memory

A key aspect, and one that many people overlook, is where the macros and profiles you create are stored . This determines whether you can easily transfer your settings to another computer.

In general, Logitech offers three possible storage locations , although their availability depends on the device model:

Internal peripheral memory : This is the ideal option. If your keyboard or mouse has built-in memory, you can save profiles directly to it . This way, when you connect it to another PC, it will retain macros, DPI settings, and some configuration options, even without G Hub installed.

Local memory on the computer : On models without integrated memory, macros are stored in the G Hub settings on that computer . If you change PCs, you will need to export/import profiles or recreate them.

Saved to the cloud (Logitech account) : In some cases, G Hub can sync certain profiles or settings with your account , although the specific functionality varies over time and by model. It's a helpful feature, but it doesn't always replace onboard storage.

  Completely uninstall GPU drivers with DDU

The recommendation for users who move around frequently (for example, gamers who compete away from home) is clear: look for a keyboard or mouse with onboard memory and multiple hardware profiles . It's common to find devices that offer several independent memory banks , allowing for completely different configurations depending on the active profile, and some programmable mechanical keyboard models include these options.

Unfortunately, this feature isn't as common in the lower mid-range . On many budget peripherals, macros depend entirely on the software installed on the PC, so if you disconnect them or switch computers, you lose your settings until you reconfigure them.

Create “On the Fly” macros without software

Some Logitech keyboard models, especially those geared towards gaming, offer the option to record macros "on the fly" without using G HUB . This means using special key combinations directly from the keyboard itself.

This method is usually intended for quick situations or for models without software . The exact procedure (which keys to press, how to start and stop recording, etc.) varies depending on the model , so it's essential to consult the manual included in the box or download the instructions from the product website.

In practice, on-the-fly macros typically offer less flexibility than those created from software : they don't always allow for the integration of system actions, advanced delay, or integration with external apps. Furthermore, it's more difficult to see exactly what you've recorded.

Therefore, while this feature is very useful as a backup plan or for advanced users, it's generally recommended to use G HUB whenever possible , as the graphical interface greatly helps in organizing and understanding your macros. If your keyboard doesn't support G HUB, you can also explore guides for Razer keyboards with Synapse for alternative software options.

What if your Logitech mouse or keyboard is very basic?

Not all Logitech devices are created equal. If you have a very basic mouse or keyboard, it might not have compatible software or macro memory . In this case, the G HUB tutorial will be a bit too advanced, but you're not completely lost.

The first thing to do is check carefully: look at the box, the product information on the official website, and the downloads section . Sometimes a seemingly simple keyboard does support some kind of configuration, even if it's not as advanced as that of a top-of-the-line gaming model.

If it's confirmed that your device doesn't natively support macros, you can use third-party programs to create shortcuts and automations . There are utilities that allow you to intercept keystrokes and launch programmed sequences, achieving an effect very similar to that of the keyboard's built-in macros.

However, these external alternatives always depend on the PC and operating system , and usually require a bit more setup time. You won't have the same integration with automatic profiles or lighting, but they can be a lifesaver if you don't want to change your peripheral.

In any case, if you plan to use macros extensively in the long run, it's worth considering upgrading to a keyboard or mouse with full G Hub support and onboard memory . The experience is much cleaner and more stable.

Mastering Logitech G HUB and its macro system makes a clear difference in how you interact with your PC, both for gaming and work . Understanding the different types of macros, taking advantage of automatic game profiles, carefully managing where your commands are stored, and knowing what alternatives you have if your hardware is limited, gives you a significant advantage over those who still do everything manually. Once you get used to having your key actions condensed into a single button, going back is no longer an option.