HelpLogitech no recoil lua script

Posts 1–2 of 2 · Page 1 of 1
Logitech no recoil lua script
just wondering been trying to get this to work with the logitech mouse software but it don't work at all
i have a g402

Code:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  -- to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
        recoil = not recoil
        spot = not spot
    end
   if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep(19)
                Sleep(19)
                MoveMouseRelative(0, 6)
                Sleep(19)
                MoveMouseRelative(-7, 7)
                Sleep(19)
                MoveMouseRelative(-6, 7)
                Sleep(19)
                MoveMouseRelative(5, 7)
                Sleep(19)
                MoveMouseRelative(8, 7)
            until not IsMouseButtonPressed(1)
        end
    end
end
That script is public and is detected. If your mouse moves in that EXACT pattern to much, you will be banned. BEWARE!

- - - Updated - - -

if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) {This is the 5th number on your mouse btw} {Go look in your Logitech Gaming Software and see what #5 is assigned to)
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?