How to Make a Macro with Logitech G Hub Software

The Logitech G Hub Software allows you to customize supported mice and keyboards. One of the more popular features is the ability to remap keys and button functionality. Macro scripts can be created with G Hub, then assigned to your device.

1. Open the Logitech G Hub Software. All of your connected devices will be shown on the opening dashboard. Only devices supported by the G Hub software will be shown.

2. Select the mouse or keyboard you want to add a macro to. A new menu will open, allowing you to customize your device.

3. Switch to the “Assignments” menu on the left. The assignments page can be used to remap buttons, keys, and actions.

4. Click the “Macros” heading from the left panel. All of your created and saved macros will be listed in this tab.

5. Choose to create a new macro. You will be required to name your macro. It is recommended to name your macro after the desired function to prevent confusion. Pressing enter will confirm the name.

6. Next you will need to choose your macro type. Each type of macro functions differently and changes how the macro repeats. The macro type can always be changed later. Once you have chosen a macro type you will be redirected to the macro creation menu.

  • No repeat will play the macro script once. This type should be used for single use functions or inputs.
  • Repeat while holding will replay the macro from the start once it has finished. The macro will stop repeating once the assigned macro key is released.
  • The toggle macro type will also replay the script on a loop. However, the assigned macro button will work as an on/off switch.
  • Sequence macros allow you to create separate scripts that play depending on your interaction. You can set a macro to play when the assigned key is pressed, held, or released. The held script will loop while you hold the button.

7. Next you need to create your macro script. Click the plus icon next to the “Start Now” text. This allows you to add actions or events to the macro. All the actions are categorized to simplify the macro creation process. You can use these actions to manually build your macro.

The easiest way to create a macro is to record it using the “Record Keystrokes” option. Once pressed G Hub will instantly start to record your keyboard and mouse inputs. Each input will be added to the script.

If your keyboard inputs arent being recorded, then try moving your mouse cursor around. This should fix the issue, and result in your inputs being added to the script.

8. Press the red square when you have finished recording the macro.

9. Each event will have an invisible delay between it. The delay will be the default 50ms. Disable the “Use Standard Delay” option on the right to use a custom delay. This will allow you to see and change the delay events.

10. Press the “Save” button and your macro will be added to the list.

Using the Macro with Your Mouse or Keyboard

Once a macro has been created in the G Hub software it will be saved to the macro list. You can find the macro list in the assignments menu of your device.

Dragging a macro from the list onto a button or key will assign the macro to it. The macro will replace the current functionality of the selected key.

You can assign macros to the left and right click mouse buttons. When attempting to overwrite a primary mouse click you will need to confirm your selection.

Editing An Existing Macro

Macros created with the G Hub software can be modified at any time. Clicking on a macro in the macro list will reopen the macro menu. Here you can make any necessary changes to the script.

Events can be moved by clicking and dragging them to a new position. Similarly, you can add new actions to the event using the plus icon. This allows you to continue your script manually or by recording.

Modifying a macro also allows you to adjust delay times. Giving you the ability to speed up or slow down a macro.

The macro type can also be changed via the icons in the top left. Changing the type will change the replay function of the script.

When you have finished making changes to the macro you will need to press “Save” to confirm. Your macro will automatically be updated, even if it is bound to a device.

Removing Macros from a Device

Once a macro has been assigned to a button on your device, there are three ways to remove it. The first option is to select the macro button and press the delete key on your keyboard. This will remove the current assignment.

Alternatively, you can restore the default functionality. Select the button you want to restore, and choose to “Use Default”. The primary function of the mouse or keyboard will return.

The final option is to drag a new function onto the button. You can use the system, commands, keys, and actions menu to select a new function. This will overwrite the macro.

Deleting a Macro

Hovering over a macro will show a cross on the right. Pressing the cross will delete the macro. You will need to confirm your choice for it to be removed.

Renaming a Macro

1. Macros can be renamed at any time. Select the macro from the list in G Hub. The macro creation menu will open.

2. Select the macro name at the top of the software.

3. Rename the macro as needed, then press enter.

4. Press save and your macro will be updated with the new name. The name will also be updated on any button it is assigned to.

Final Thoughts

Macros are useful for adding additional features to your device and making quality of life improvements. While the Logitech G Hub macro creator isn’t the most advanced, it still allows for rather extensive scripts to be created. Creating a script in G Hub is incredibly easy and beginner-friendly.. This allows anyone with G Hub supported devices to create and use macros.