Hi peeps,

this is the only code i found that might work as a no-recoil macro for the logitech gaming mouse series but its for .ahk
If someone could please convert this into a .lua for me as i have no clue how to do it.

Thanks in advance.
Code:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
 
; Nels
NRA := 1
 
; SS
Insert::Suspend
 
; NR
*~LButton::
    while GetKeyState("LButton") & NRA
    {    
        DllCall("mouse_event", uint, 1, int, -2, int, 2, uint, 1, int, 0)
        Sleep, 9.5
        DllCall("mouse_event", uint, 1, int, 1.75, int, 1, uint, 0, int, 0)
        Sleep, 5
    }
return