How to Make a Macro on Logitech: Full Guide

VBA & macros · Updated November 22, 2026

Logitech macros let you bind a sequence of keystrokes, mouse clicks, or button presses to a single key or button on your Logitech mouse or keyboard. This is useful for automating repetitive tasks in games, productivity apps, or streaming. To create macros, you need Logitech G HUB software (for most modern devices) or Logitech Gaming Software (for older models). This guide covers both, with clear steps.

What You’ll Need

  • A Logitech G-series mouse, keyboard, or other compatible device.
  • Logitech G HUB (recommended) or Logitech Gaming Software, installed from the official Logitech website.
  • Administrator rights on your computer to install software.
  • For keyboard macros, a keyboard with programmable keys (e.g., G910, G915). For mouse macros, any Logitech G mouse with extra buttons.

Step-by-Step

  1. Install and open Logitech G HUB. Download it from logitechg.com, run the installer, and launch the app. If you have an older device, you may need Logitech Gaming Software instead—the steps are similar, but the interface differs slightly.
  2. Select your device. On the G HUB home screen, click the image of your mouse or keyboard. If it isn’t listed, check the connection (USB receiver or cable) and restart G HUB.
  3. Open the Assignments screen. In G HUB, click the gear icon (Settings) for your device, then choose “Assignments” or the “Buttons” tab. For keyboards, you’ll see a grid of keys; for mice, a diagram of buttons.
  4. Choose a key or button to assign the macro to. Click on the specific key/button you want to use. It will highlight, and a menu will appear.
  5. Select “Macro” from the menu. In the pop-up, choose “Macro” as the action type. If you don’t see it, look for a “Macros” section in the left sidebar.
  6. Create a new macro. In the Macro window, click “New Macro” (or the + icon). Name it something descriptive, like “Double Jump” or “Copy Paste”.
  7. Set the macro properties. Choose the “Repeat” option: No Repeat (run once), Toggle (press to start, press again to stop), or Repeat While Held (hold the key to loop). For most tasks, “No Repeat” is fine.
  8. Record the macro. Click “Record” and then press the keys or mouse buttons you want to include, in order. For example, to make a macro that types “Hello”, press H, E, L, L, O. Add delays between actions if needed by clicking “Add Delay” and entering milliseconds.
  9. Stop recording and save. Click “Stop Recording” (the red square). Review the list of actions; you can delete or reorder them by dragging. Click “Save” or “OK” to finish.
  10. Assign the macro to the key/button. After saving, you’ll be back in the Assignments screen. Click the key/button again, select the macro from the list, and it will be assigned. The key/button now triggers the macro.
  11. Test the macro. Open a text editor or game and press the assigned key/button. The macro should execute the recorded sequence. If it doesn’t, check the repeat settings and that the correct profile is active.

Common Mistakes

  • Choosing the wrong repeat mode. Setting “Repeat While Held” when you want a single action can cause the macro to loop unexpectedly.
  • Forgetting to click “Save” after recording. If you close the window without saving, the macro won’t exist.
  • Assigning the macro to a key that’s already used. This can override default functions (like the Windows key). Check the current assignment before overwriting.
  • Using the wrong software. G HUB doesn’t support very old devices; Logitech Gaming Software is needed for those. Trying to use G HUB with an unsupported device will fail.
  • Not selecting the correct profile. If you have multiple profiles (e.g., one for games, one for work), the macro may only work in the profile where it’s assigned. Make sure the active profile is the one you edited.

Tips

  • Use delays for reliable execution. In games, some actions need a small pause between key presses. Add a 50–100 ms delay if the macro feels too fast.
  • Name macros clearly. Use names that describe the action, so you can find them later in a long list.
  • Back up your macros. In G HUB, you can export your profiles to a file. Go to Settings > Profiles, and use the export option to save a backup.
  • Combine macros with other actions. You can assign a macro to a mouse button while keeping the original key function on the keyboard—useful for gaming.
  • Check game compatibility. Some games (especially competitive ones) may block macros or consider them cheating. Use macros only where allowed.

Troubleshooting

  • Macro doesn’t work at all. First, verify the device is recognized in G HUB. If not, unplug and replug the USB receiver, or restart the software. Also check that the key you assigned isn’t disabled by a game’s anti-cheat.
  • Macro works in G HUB but not in a game. The game may be running as administrator while G HUB isn’t, or vice versa. Run both as administrator. Also, some games use raw input that bypasses Logitech’s software—try using the “Onboard Memory” mode if your device supports it (in G HUB, go to Settings > Onboard Memory Manager).
  • Macro repeats too many times. Change the repeat mode to “No Repeat” or adjust the “Repeat While Held” settings. If you used “Toggle”, press the key once to stop it.
  • Can’t find the “Macro” option. In G HUB, ensure you’re in the “Assignments” view. If using Logitech Gaming Software, look for a “Macros” tab on the left side of the device settings.
  • Recorded keys appear as “Unknown” or don’t register. This can happen if you press keys that G HUB doesn’t recognize (like some media keys). Try using standard letters/numbers first, or use the “Add Key” option to manually insert.

Frequently Asked Questions

Can I make a macro that types text? Yes. Record the text as a series of keystrokes, or use the “Text” action in G HUB (if available) to type a string instantly.

Will macros work on a Mac? Logitech G HUB is available for macOS, and macros work similarly. However, some features like Onboard Memory Manager may differ.

Can I assign a macro to a keyboard key like F1? Yes, any programmable key can be assigned a macro, including function keys.

Are macros considered cheating in games? It depends on the game. Many single-player games allow them, but competitive multiplayer games often forbid macros that automate actions. Check the game’s rules.

How do I delete a macro? In G HUB, go to the Assignments screen, select the key with the macro, and choose “Clear” or “Unassign”. Then go to the Macros list and delete the macro itself.

Can I share macros with friends? Yes, you can export your profile file and share it. In G HUB, go to Settings > Profiles, click the three dots, and select “Export”.

Related

Try it: the Column Letter to Number: aA is 27, XFD is 16,384. Converts both ways.

More in VBA & macros

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.