This guide shows you how to record, save, and assign macros to your Logitech G Pro (wired or wireless) using Logitech G HUB software. Macros let you trigger a sequence of keystrokes, mouse clicks, or button presses with a single press of a G-key, which is useful for repetitive tasks in games, productivity apps, or streaming. You’ll need a Logitech G Pro mouse, a PC with Windows or macOS, and the free Logitech G HUB software installed.
What You’ll Need
- Logitech G Pro or G Pro Wireless mouse
- Computer running Windows 10/11 or macOS 10.14+
- Logitech G HUB software (download from logitech.com)
- USB cable or wireless receiver to connect the mouse
- A game or app to test the macro in
Step-by-Step
- Install Logitech G HUB. Go to logitech.com/g-hub, download the installer for your OS, and run it. Follow the on-screen prompts. If you already have G HUB, make sure it’s updated (click the gear icon in the bottom-left, then “Check for Updates”).
- Connect your G Pro. Plug in the USB cable or use the included wireless receiver. G HUB should automatically detect the mouse and show its image on the home screen. If not, unplug and replug the mouse, or restart G HUB.
- Open the mouse’s settings. Click the mouse image in G HUB’s home screen. This takes you to the assignment screen with a visual of your mouse and a list of buttons on the left.
- Select the button to assign. On the left side, you’ll see a list like “Left Click,” “Right Click,” “Middle Click,” and “G-Shift” (if available). Click the button you want to assign the macro to. For the G Pro, the common choices are the two side buttons (G4 and G5) or the DPI-shift button (G9).
- Choose “Macro” as the assignment. In the button’s drop-down menu (currently showing “Default” or “Keystroke”), select “Macro.” A sub-menu appears asking if you want to create a new macro or use an existing one.
- Create a new macro. Click “Create New Macro.” A window pops up. Give it a clear name (e.g., “Double Jump” or “Build Wall”) and optionally choose an icon color. Click “Create.”
- Set the macro’s recording type. In the macro editor, you’ll see a “Recording Type” dropdown. Choose:
- No Repeat – plays the macro once per button press.
- Toggle – plays the macro repeatedly until you press the button again.
- Repeat While Held – plays the macro as long as you hold the button down.
- Sequence – lets you set a delay between repeats (advanced).
For most macros, “No Repeat” is best. Choose it now.
- Record the macro. Click the red “Record” button at the bottom. Start typing your keystrokes or clicking your mouse buttons in the order you want them executed. For example, to make a “build wall” macro in Fortnite, you might press Q, then Left Mouse Button, then Q again. Click “Stop Recording” when done.
- Edit timing if needed. After recording, you’ll see a timeline with events. You can drag the time between events to add delays (right-click to insert a delay). For most macros, the default recording is fine. If you want to remove a stray keystroke, click it and press Delete.
- Save and assign. Click “Save” in the macro editor. Back on the main assignment screen, the macro name should now appear in the button’s drop-down. Select it. The button is now assigned.
- Test it. Open a text editor (like Notepad) or your game. Press the assigned button. The macro should execute. If it doesn’t, check that G HUB is running and the mouse is in “Onboard Memory” mode vs. “G HUB” mode – macros only work when G HUB is active unless you save them to onboard memory.
- Save to onboard memory (optional). In the main mouse screen, click the “Onboard Memory” tab (the chip icon). Drag your macro-assigned button into the onboard profile. This lets the macro work on other computers without G HUB running, but note that onboard macros are limited to basic keystrokes and clicks – no complex timing or system commands.
Common Mistakes
- Recording with the mouse button itself. If you press the button you’re assigning the macro to during recording, it will record that button press and cause a loop or error. Use a different button or keyboard key to trigger the macro.
- Not selecting “Macro” before clicking “Create New Macro.” Some users try to record directly from the button’s default menu. You must first change the assignment to “Macro” and then create the macro.
- Forgetting that macros don’t work in games with anti-cheat. Many multiplayer games (like Valorant or CS:GO) block macro input as cheating. Use macros only in single-player games or games that allow them.
- Leaving G HUB in “Onboard Memory” mode. If your mouse is set to onboard memory, G HUB settings are ignored. Switch to “G HUB” mode (the computer icon) to use software macros.
Tips
- Use delays for reliable sequences. If your macro involves actions that need time to load (like opening an inventory), add a 100–200ms delay between keystrokes. Right-click in the timeline and select “Insert Delay.”
- Name macros by function, not by key sequence. For example, “Heal” is clearer than “H, H, Q.” This helps when you have many macros.
- Test in a safe environment first. Always test a new macro in a text editor or practice mode before using it in a live game or important work document.
- Use G-Shift to double your button count. Assign a button as G-Shift (a modifier). Then you can assign a second set of macros to all other buttons that activate only while holding the G-Shift button.
- Export your profiles. In G HUB, go to the profiles section and click the three-dot menu to export your settings as a backup. This saves you from redoing everything if you reinstall.
Troubleshooting
- Macro doesn’t play at all. First, confirm G HUB is running (check system tray). Then check the mouse’s mode – click the computer icon in G HUB to switch from onboard memory to G HUB mode. Also verify the button assignment is saved (the button should highlight in G HUB).
- Macro plays but with wrong keys. Re-record the macro, being careful not to press the trigger button. Also check if your keyboard layout is different (e.g., QWERTY vs AZERTY) – G HUB records physical keys, not characters.
- Macro works in Notepad but not in a game. Many games ignore synthetic input or require the game to be in focus. Try running the game in windowed mode and ensure G HUB is not minimized to the tray (keep it open). If it still fails, the game likely has anti-cheat blocking macros.
- G HUB doesn’t detect the mouse. Try a different USB port, uninstall and reinstall G HUB, or update your mouse’s firmware via G HUB’s settings. On macOS, you may need to grant G HUB accessibility permissions in System Preferences > Security & Privacy.
- Macro repeats endlessly. You set the recording type to “Toggle” or “Repeat While Held.” Change it to “No Repeat” in the macro editor, then save and reassign.
Frequently Asked Questions
- Can I use macros on the Logitech G Pro without G HUB? Yes, but only if you save them to onboard memory. However, onboard macros are limited to basic keystrokes and cannot include delays or mouse button sequences. For full functionality, G HUB must be running.
- Will macros get me banned in games? It depends on the game. Games like World of Warcraft allow macros that combine multiple abilities, but competitive shooters often consider them cheating. Check the game’s terms of service. Using macros to automate human actions in multiplayer games is risky.
- How do I delete a macro? Go to the macro editor (click the macro name in the button assignment), then click the trash icon or right-click the macro in the list and select “Delete.” You can also manage macros under the “Macros” tab in G HUB’s main menu.
- Can I assign a macro to the left or right click? Yes, but it’s not recommended because you’ll lose the ability to click normally. If you do, you can always revert by selecting “Default” in the button’s drop-down.
- Why does my macro have a delay even though I typed fast? G HUB records the actual time between your keystrokes. If you typed slowly, it adds those gaps. You can manually reduce delays by selecting each delay in the timeline and dragging it to the left, or by re-recording faster.
- Does the G Pro Wireless have the same macro features as the wired G Pro? Yes, both use G HUB and support the same macro system. The only difference is connectivity.
Related
- Cell Counting Protocol: Step-by-Step Guide
- Minimize Window Shortcut: Windows & Mac Keys
- How to Calculate Subtotal in Google Sheets
Try it: the Column Letter to Number: aA is 27, XFD is 16,384. Converts both ways.
More in VBA & macros
- Excel VBA Max String Length: Limits and WorkaroundsIn Excel VBA, a variable-length String can hold roughly 2 billion characters in theory, but available memory and…
- VBA Functions With Parameters: Syntax and ExamplesA VBA function with parameters accepts values from its caller, uses them in its code, and returns a…
- VBA Sort Column Ascending in ExcelTo sort a column in ascending order with VBA, use Excel’s Range.Sort method and set Order1:=xlAscending. For example,…
- Excel VBA Date Math: Add, Subtract, and Compare DatesIn Excel VBA, subtract one Date value from another to get the elapsed time in days, and use…
- VBA Split: How to Turn Text into an Array in ExcelYes. In Excel VBA, use the Split function to divide a string at a delimiter and return the…
- VBA Dictionary Count: What It Returns and How to Use ItIn VBA, read a dictionary’s item count with its Count property: dict.Count. It returns the number of key–item…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.