How do I use macros on the G502?

Applies to: Logitech G502 Hero / G502 Lightspeed / G502 X / G502 X Plus
Last updated: May 2025


Problem

You want to automate actions or sequences—like combo keys, game rotations, or productivity shortcuts—by assigning macros to buttons on your G502 mouse.


Solution

You can create and assign macros in Logitech G Hub. These macros can include keyboard shortcuts, mouse clicks, timed delays, and more, allowing you to streamline complex actions into a single button press.


Step-by-Step Guide

1. Open Logitech G Hub


2. Go to Assignments > Macros

  • On the left-hand sidebar, click Assignments
  • Click the Macros tab (next to Commands/Keys/System)
  • Click “Create New Macro”

3. Create Your Macro

You’ll be prompted to choose a macro type:

Macro TypeDescription
No RepeatExecutes once per button press
Repeat While HoldingRuns as long as the button is held
ToggleStarts with one press, stops with another
SequenceSteps run in exact order, including delays

Click Start Recording, perform the desired keystrokes and/or mouse clicks, and then stop recording. You can then:

  • Rearrange or delete individual steps
  • Add delays manually between actions (useful for cooldowns or pacing)
  • Rename the macro

4. Assign the Macro to a Button

  • Drag the macro onto the button you want to use (in the mouse layout view)
  • Alternatively, click a button, choose “Macro,” and select from the list

You can assign different macros for G-Shift mode as well, if enabled.


5. Test the Macro

  • Open a text editor or launch your game/software
  • Press the assigned button and observe the macro behavior
  • Adjust timing/delays in G Hub if needed

Use Case Examples

Use CaseMacro Example
Gaming (MMO)Cast spell rotation: 1 → 2 → 3 with 200ms delay
ProductivityCopy + Paste: Ctrl+C → Ctrl+V
StreamingToggle OBS mic + switch scene
Design ToolsSnap grid toggle + duplicate action

Limitations

  • Macros only work while G Hub is running (not supported in Onboard Memory Mode)
  • Some games may block or restrict macros—check the game’s ToS
  • Macros do not support complex scripting (e.g., logic, conditions)

Notes

  • Save different macros per profile, allowing different setups per app or game
  • Combine with G-Shift to create a second macro layer for even more options
  • You can export/import macros for backup or sharing

You may also like...