Skip to content

Instantly share code, notes, and snippets.

@adhiraj2001
Forked from byhemechi/flick.lua
Created September 8, 2023 19:55
Show Gist options
  • Save adhiraj2001/09746a960a94dcb38be536f2d896e85c to your computer and use it in GitHub Desktop.
Save adhiraj2001/09746a960a94dcb38be536f2d896e85c to your computer and use it in GitHub Desktop.
Logitech Mouse Flick Lua script
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