← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #249558]: How to count images withn a region

 

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

Jeremy proposed the following answer:
The findAll worked for me:
Iterator<Match> matches;
		        int looking_for_three = 0;
		        while (looking_for_three != 3)
		        {
		        	looking_for_three = 0;
			        matches = s.findAll(Battle.toString());
					while(matches.hasNext()){
						matches.next();
						looking_for_three++;
					}
			        System.out.println(looking_for_three + " count");
		        }	
		        matches = s.findAll(Battle.toString());
My page loads slowly, so I'm just waiting for them all to load.

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