← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #169911]: stop clicking on the spot where it is clicked before

 

Question #169911 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169911

    Status: Open => Answered

RaiMan proposed the following answer:
use a sequence of 
loc = Location(some-x, some-y) # or any other location

for i in range(10)
    click(loc)
    offsetX = i*3 # these you might randomize again
    offsetY = i*3
    x = loc.x + offsetX
    y = loc.y + offsetY
    loc = Location(x,y)
    mousemove(loc)

may be you want to set moveMouseDelay to zero (look docs)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.