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
- Download or open: https://www.logitechg.com/ghub
- Select your G502 mouse from the device list
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 Type | Description |
|---|---|
| No Repeat | Executes once per button press |
| Repeat While Holding | Runs as long as the button is held |
| Toggle | Starts with one press, stops with another |
| Sequence | Steps 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 Case | Macro Example |
|---|---|
| Gaming (MMO) | Cast spell rotation: 1 → 2 → 3 with 200ms delay |
| Productivity | Copy + Paste: Ctrl+C → Ctrl+V |
| Streaming | Toggle OBS mic + switch scene |
| Design Tools | Snap 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




