← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673162]: click randomly on an image

 

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

    Status: Open => Answered

Manfred Hampl proposed the following answer:
see comment #2 in https://answers.launchpad.net/sikuli/+question/665546

m = find(imageIwantToClick)
click(Location(random.randint(m.getX(),m.getX()+m.getW()),random.randint(m.getY(),m.getY()+m.getH())))

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.