# Logitech mouse macros and their features

> Logitech mouse macros run through G HUB as scripts in the Lua programming language. What does that give you?

URL: https://promacro.ru/en/logitech-macro/
Updated: 2026-11-01

## Programmable macros

Macros for **Logitech (G HUB)** mice are no longer news: these mice are decent competition to **A4Tech**, not to mention other brands. But the most important thing is that only **Logitech** mice use **a full-fledged programming language, `Lua`**, for macros, and that gives them a huge lead in what macros can do compared to any other mouse.

![Logitech G HUB script with a loaded Lua program with CS2 macros](https://promacro.ru/en/_astro/logitech-g-hub-script-with-a-loaded-lua-program-with-cs2-macros.o2z5Aur4_7Lq4w.webp)

## Does the price matter?

Whichever Logitech mouse you buy, if it works with G HUB, you get all the possibilities of programmable `Lua` programs with macros. **Logitech G102 and G PRO 2 have the same capabilities, because G HUB does all the work**.

## Macros on Logitech and A4Tech: what's the difference?

A4Tech uses the simple and clear **syntax from Oscar** in all its macro mice. Logitech mice use **the `Lua` programming language** for macros. That makes creating and editing them much harder for beginners who aren't familiar with `Lua` programming.

![A4Tech Bloody macro editor](https://promacro.ru/en/_astro/A4Tech-Bloody-Oscar-macro.OZlzCD_L_aMJdx.webp)

*A4Tech Bloody macro editor*

![A simple Lua macro for Logitech](https://promacro.ru/en/_astro/Logitech-Lua-macro.CZXjno9w_1SOcDy.webp)

*A simple `Lua` macro for Logitech*

On top of that, on Logitech mice (unlike A4Tech) macros work **through G HUB and its input emulation**, and the mouse memory isn't used. As soon as you close Logitech G HUB, the macros **stop working right away**. That is **the main drawback of these mice**: this system works **far from in every game**.

## The game decides the mouse

The most important rule applies here too: when it comes to macros, **the game decides your mouse**, not the other way around. For many games a Logitech mouse with macros is a superweapon, but G HUB won't work on FACEIT, in VALORANT and in a number of other games, so **you may need a second mouse**, this time from **A4Tech**.
