← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #201531]: Unable to click in random location based on image search.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is what I used to test:

import random
x = random.randint(1,10)
print Region(0,0,10,10).getCenter().offset(x, x)

prints:
(9,9)
which is a Location object.

Sikuli rc3 generally comes with Jython 2.5.2

you might paste your code here.

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