Moving Stacks or the Mouse

Roger Guay irog at mac.com
Thu Jun 9 14:02:18 EDT 2005


Tom,

Thanks very much for this suggestion . . . I'll work with this.  Of  
course my task is complicated by the fact that I am going from one  
stack to another, but I enjoy the challenge.

Thanks again, Roger


On Jun 8, 2005, at 5:07 PM, use-revolution-request at lists.runrev.com  
wrote:

>
> You could capture the start points x,y and then you must know your end
> points u,v and figure the stepping distance between the two. So if you
> had x= 200 and u = 340 and you wanted a step of 10 then you could
> repeat with a = x to u step 10 or (200, 210, 220, 230, 240...
> 320,330,340)
> Or written like this: (not tested yet)
>
>     repeat with a = x to u step 10
>          put a & cr after myLocsOne
>        end repeat
>     repeat with b = y to v step 10
>         put  b & cr after myLocsTwo
>       end repeat
>
> Then put the two lists together.
>
> repeat with h = 1 to the number of lines in myLocsOne
>     put (line h of myLocsOne) & "," & (line h of myLocsTwo) into  
> line h of
> myLocs
> end repeat
>
> repeat with x = 1 to the number of lines in myLocs
>     set the screenMouseLoc to (line x of myLocs)
>      wait 500 milliseconds -- adjust this to a speed that feels  
> good to
> you
> end repeat
>
>
> Tom
> P.S. you can also do this kind of thing with the points of a  
> polygon or
> line etc. and record or as I have done with the localLoc of buttons
>
> HTHs
>
> On Jun 8, 2005, at 7:30 PM, Roger Guay wrote:
>
>



More information about the use-livecode mailing list