← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #226074]: grabbing location details of matches out of a list

 

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

    Status: Solved => Open

JD is still having a problem:
that works well, I now have the list showing:
points = [(735, 298), (735, 390), (827, 390), (966, 390), (643, 390), (781, 483), (920, 483), (643, 483), (920, 575)]

so [(x0,y0), (x1,y1),(x2,y2)........]

I would however like to get them in a format of

[x0,y0,x1,y1,x2,y2] to be able to perform calculations on the x values and the y values.
Using the above method retrieving points[0] returns (735,298), rather than just a single value. 

I want to trigger a response if for example match 1 is located on the
x-axis between 730 and 740, and between 290 and 300 on the y-axis.

thank you for your help and I apologize for not being clearer before
JD

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