Motion with constant speed along a spline with a variable length in real time

How do you mean ‘attach second point to mouse cursor’?