function OnEvent(event, arg, family)

    if event == "MOUSE_BUTTON_PRESSED" and arg == 5 then

           PressMouseButton(1)

           Sleep(math.random(95,105))

           ReleaseMouseButton(1)

           Sleep(math.random(81,91))

    end

end


마우스 5번키를 누르면 1번키를 누르게 하는거까지는 성공했는데


꾹 누르고 있으면 연타가 되게 하려면 어떻게해야 되나요 


그리고 그 간격도 랜덤하게 1~10 간격을 지정하고 싶은데