How to Install a Macro in Logitech G HUB
Learn how G HUB macros work, how to create a simple test macro, how to assign it to a mouse button, and what to check before editing presets.
How Logitech G HUB Macros Work
Macros in Logitech G HUB let you build a sequence of actions: keyboard presses, mouse clicks, delays, holds, releases, and repeated inputs.
G HUB supports several macro behavior types:
- No Repeat - the macro runs once after pressing the assigned button.
- Repeat While Holding - the macro keeps running while the assigned button is held.
- Toggle - one press starts the macro, and the next press stops it.
- Sequence - separate macro stages can run on press, while holding, and on release.
A simple macro can look like this:
input press -> delay -> input release -> delay -> next input press
How to Create and Assign a Macro in G HUB
Start with a simple test macro before importing or editing anything more complex. A basic text macro is easy to verify in Notepad.
- Open Logitech G HUB and select your mouse.Placeholder image: select mouse in Logitech G HUB
- Go to Assignments and open the Macros section.Placeholder image: assignments and macros tab
- Click Create New Macro and give it a clear name, such as test_hi.Placeholder image: create new macro name field
- Choose a macro type. For a basic test, select No Repeat.
- Click Start Now. G HUB will show macro action options, such as keystroke recording, text, system actions, app launch, and delay.Placeholder image: macro action options
- Add the first key, then add a short delay, then add the second key. For example, use H and I.
H press -> short delay -> H release -> short delay -> I press -> short delay -> I release - Save the macro after the sequence is complete.Placeholder image: saved macro in G HUB
- Drag the macro from the Macros list and drop it onto the mouse button you want to use.Placeholder image: drag macro to mouse button
- Make sure the correct G HUB profile is active. Macro assignments are profile-based, so the wrong profile can make it look like the macro is missing.
Open Notepad and press the assigned button. If the macro was created correctly, it should type hi.
G HUB Macro Action Types
When you create a macro, G HUB can use several action types. These options are useful when you need to build or edit a preset manually.
- Record Keystroke - records normal keyboard or mouse inputs.
- Text & Emojis - inserts custom text or emoji input.
- Action - assigns supported actions for compatible applications.
- Launch Application - starts a selected program or game.
- System - assigns system-level actions.
- Delay - adds timing between macro actions.
How to Use Ready-Made G HUB Presets
Ready-made presets may include profile files, macro notes, screenshots, or manual values. The exact install method depends on the file format and your G HUB version.
- Download the preset pack and keep the setup notes with the files.
- Open G HUB and select the correct mouse profile.
- Import the profile if the preset includes an importable file.
- If there is no import file, recreate the macro manually using the included values.
- Assign the macro to the correct mouse button.
- Test it in a safe environment and adjust timing if needed.
Basic Troubleshooting
The macro does not appear
Check the active profile. G HUB profiles are separate, so the macro may exist in another profile.
The macro does not run
Confirm that the macro was assigned to the correct mouse button and that G HUB is running.
The macro repeats incorrectly
Check the macro type. No Repeat, Repeat While Holding, Toggle, and Sequence behave differently.
The timing feels wrong
Edit the delay values. Even small changes can affect how the macro feels.
Next Step
Once you know how to create, assign, and test a macro in Logitech G HUB, you can work with preset packs more safely and edit them for your own DPI, sensitivity, and mouse profile.