recording the mouse movements while using a paint tool
Doug Lerner
doug at webcrossing.com
Wed Jan 7 04:58:55 EST 2004
It is possible to log the mouse actions in the paint area. For example, a
handler like this:
on mouseMove
global wbTracker
repeat while the mouse is down
put "," & the mouseLoc after wbTracker
end repeat
end mouseMove
will record something like this for the mouse movements:
51,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,4
86,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,3
51,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,4
86,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,3
51,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351,486,351..
.etc.
but this needs to be tweaked because the drawn line appears after the mouse
is up, rather than during the operation.
doug
More information about the use-livecode
mailing list