-
-
Save adhiraj2001/09746a960a94dcb38be536f2d896e85c to your computer and use it in GitHub Desktop.
Logitech Mouse Flick Lua script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function OnEvent(event, arg) | |
if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then | |
distance = 512 | |
Sleep(200) | |
MoveMouseRelative(-distance, 0) | |
Sleep(500) | |
MoveMouseRelative(distance, 0) | |
PressAndReleaseMouseButton(1) | |
MoveMouseRelative(distance, 0) | |
Sleep(500) | |
MoveMouseRelative(-distance , 0) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment