The target is a BMP file containing a solid line typically hand drawn and 10-20 px wide, of a single colour. On a background of another single colour. Looking like this:

The mouse cursor would initially be placed manually a few pixels within the line near its start. The script would capture the mouse coordinates relative to the window in the two array variables X(1) and Y(1). It would then step along the line in small intervals (user settable, say 2px), storing the coords in X(2),Y(2) etc, remaining within 1-2 pixels of the line's centre, until reaching the end at X(n), Y(n).
A second part of the script, started by the user, would then be able to use each mouse position from the stored array to move a brush (such as the Eraser) along the line at a user-settable speed.
My practical objective is to record a video during that second stage while revealing a route or path of some sort.
With many such lines that get close at various points and/or have sharp turns, I've found this extremely hard to do manually.
Terry


