Possible to make an updated version?

09/18/2017 18:25 thehelp#1
Is there a way to make an updatet version of this code for logitech mouses?

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 == 4) then
        recoil = not recoil
        spot = not spot
    end
   if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep(35)
                Sleep(8)
                MoveMouseRelative(0, 2)
               
            until not IsMouseButtonPressed(1)
        end
    end
end
09/19/2017 13:54 Les_Grossman#2
Updated in what sense? Change the recoil? The Buttons? Because this script should still work if used with Logitech software.
09/19/2017 17:32 thehelp#3
Quote:
Originally Posted by VampireDiarrhea View Post
Updated in what sense? Change the recoil? The Buttons? Because this script should still work if used with Logitech software.
In the last thread they said it was detected. How could it be? and i tested it now, but it does not controll the recoil at all