Question #160030 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/160030
Saorabh Singh posted a new comment: Hi Raiman, I tried, but i am not able to get match_list Sorted. So can you please provide me a sample code to get it?? Regards, Saorabh Singh On Mon, Jun 6, 2011 at 5:36 PM, RaiMan <[email protected] > wrote: > Your question #160030 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/160030 > > Status: Open => Answered > > RaiMan proposed the following answer: > on Java level, findAll returns an object of type Iterator<Match>. > > But neither find nor findAll return strings, they return Match objects, > that represent the found regions. > > So the usage should be: > > Iterator<Match> matches; > matches = s.findAll( [ANY_IMAGE] ) > > Now it should be possible to have a for loop that loops through matches. > > You might sort the matches as needed before regarding to their > coordinates (x or y) or other available attributes of a Match object. > > -- > If this answers your question, please go to the following page to let us > know that it is solved: > https://answers.launchpad.net/sikuli/+question/160030/+confirm?answer_id=4 > > If you still need help, you can reply to this email or go to the > following page to enter your feedback: > https://answers.launchpad.net/sikuli/+question/160030 > > You received this question notification because you asked the question. > -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

