← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210748]: click dynamically

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
If you are a Java programmer and know the font, than you can create a
buffered image and use it to search.

On the plain Sikuli script level there is no possibility for this.

But you say:
the requirement is to click on any one record

So if you know the position of the first record (first = Location(x,y)),
the heigth of each entry and the number of records:

height = h # to be evaluated somehow
first = Location(x,y) # the click point for 1st rec, evaluated somehow
count = n # number of records

for i in range(count):
    click(first.below(i*height))
    # do what's needed

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