sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #46276
Re: [Question #665546]: SikulixIDE 1.1.2 Click a random place inside an image
Question #665546 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665546
masuo proposed the following answer:
Both getTopLeft() and getBottomRight() return Location object.
random.randint() require integer.
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.