Start with the exact model, not just the brand
Logitech Lua macros are used with compatible G-series mice and G HUB. Names such as G102, G305, G502, or G Pro help identify the device, but they do not replace checking its revision and available features.
A Logitech office mouse and a Logitech G gaming mouse may use different programs. Do not install a random editor simply because the same logo appears on the casing. Find your model in the manufacturer support resources and check whether it appears in G HUB.
The active application profile also matters in Windows. If the script is loaded into one profile but another is selected automatically when the game starts, button actions will differ from what you expect.
How do you want to switch between scripts?
One file contains one set of actions. Before running it, check the activation button and required settings.
Open guideWhy pressing only the left mouse button may not be enough
Scripts for games that use right-click aiming may require the right and left mouse buttons to be held together. This prevents a normal menu click from starting compensation movements.
If you test this type of script with only the left button, the absence of movement may be expected. Check the instructions. You may need to enable a master toggle, select the weapon macro, and hold the specified button combination.
Do not remove a protective condition just to run a quick test. After the change, the script may trigger during actions it was not designed for. Keep an unchanged original and a clear way to disable it.
What onboard memory provides
Device memory can store supported settings, but software control and standalone operation are not equivalent. An action that works while G HUB is running may become unavailable after switching to onboard memory.
Logitech describes macro limitations in Onboard Memory separately, including certain repeat modes. Check whether the action type is supported, not just whether memory appears in the specifications.
Do not treat “it all runs in the mouse” as a guarantee that it is allowed in a game. The technical execution method and the rules of a particular game are separate questions.
Prepare a working profile
- Save your usual assignmentsRecord DPI and button functions. Create a separate test profile if the software and device allow it.
- Choose one source of controlCheck which profile is active, and do not mix several applications that modify the same buttons.
- Load the required fileA Lua script and a standard macro are added differently. Use the appropriate G HUB section.
- Test activation and stoppingMake sure you know the toggle, execution condition, and way to return to normal controls.
Frequently asked questions
Does a multi-script detect the weapon automatically?
Not by default. If the description lists hotkeys, the user makes the selection. Automatic detection is a separate feature and must not be assumed.
Does G5 always mean the same button?
Use the diagram for your model and the file instructions. Do not apply a label from code or a description to any mouse without checking.
Why does Lua stop working after a profile switch?
Check whether the script is attached to the current profile and enabled. Automatic switching when an application starts can change the configuration.
Is a free file necessarily unsafe?
No. Price does not prove safety. What matters is its origin, understandable contents, and the absence of unnecessary components or access requirements.