Hello, I need your help to create a script on the Logitech mouse.

I do not know if I can configure this without a script.
I'm having a hard time putting my idea into practice.

I currently play a shooting game, and I wanted the mouse to be left-click-clicking, with a minimal delay possible, just as long as my right button is pressed.

I can not just put the macro on the left button, because it messes up a lot in basically everything in the game, but if I put it only when the right button is pressed, it solves the whole problem.
The right button can not be pressed and impressed, as this would be "aiming and tearing" when I tried to shoot.

Maybe putting the option to shoot another button, and setting the right button to perform the click macro with very low ms?

I'm sorry, I'm a layman.