Pages: 1
I can save one set of co-ordinates (say variables: "x1","y1") values on a single mouse click, but cannot seem to get it to save another click into (say variables: "x2","y2"). ie. its always the same...
Thank you,
Offline
You will either need another variable, or you could try this:
when gf clicked forever wait until <mouse down?> set [x1 v] to (mouse x) set [y1 v] to (mouse y) wait until <mouse down?> set [x2 v] to (mouse x) set [y2 v] to (mouse y) endYou will probably have to change the loop, but you get the idea. Tell me if this works, and if not, then i can think up another way.
Last edited by CAA14 (2013-04-27 22:32:07)
Offline
Just to show you, the script below is a variation of CAA14's method which let's you store the previous mouse click and the current one while staying a bit more up-to-date. You might find it helpful. ;)
when gf clicked forever wait until <mouse down?> set [x2 v] to (x1)//Previous click. set [y2 v] to (y1)//Previous click. set [x1 v] to (mouse x)//Current click. set [y1 v] to (mouse y)//Current click.With regards,
Last edited by ErnieParke (2013-04-28 11:34:24)
Offline
Pages: 1