Skip to content

Instantly share code, notes, and snippets.

@byhemechi
Last active September 13, 2023 16:56
Show Gist options
  • Save byhemechi/144c4c1b1fa77ed24b5c45468a570fc0 to your computer and use it in GitHub Desktop.
Save byhemechi/144c4c1b1fa77ed24b5c45468a570fc0 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