A two-point path may still include hover effects, loading time, or a click at either end. Record the real interaction instead of assuming only the coordinates matter.
Define one complete trip
Record one complete trip between the two points and replay it as a finite loop with enough time for the screen to respond.
Preserve the real timing
MacroLoop can preserve the route and its natural timing. Make the first recording slowly enough that menus and hover controls settle before the pointer moves again.
When coordinates are not stable
If either point moves after every cycle, a coordinate-based replay will drift away from the intended controls. In that case, a page-aware script or application API is safer.
THE TAKEAWAY
Repeat the whole visual cycle, not two isolated coordinates, and stop if the interface shifts.