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:
You 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.whenclicked
foreverwait untilmouse down?setx1 ▼tomouse xsety1 ▼tomouse ywait untilmouse down?setx2 ▼tomouse xsety2 ▼tomouse y
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. ;)
With regards,whenclicked
foreverwait untilmouse down?setx2 ▼tox1Previous click.sety2 ▼toy1Previous click.setx1 ▼tomouse xCurrent click.sety1 ▼tomouse yCurrent click.
Last edited by ErnieParke (2013-04-28 11:34:24)
Offline
Pages: 1