← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #670183]: Count the number of pictures

 

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

    Status: Answered => Open

Ju1+i-我. is still having a problem:

	    if (s.exists(s1.prop("sm37")) != null) {
	    	System.out.println("Blank");
	     }
	    else{
	        int count = 0;
	        while (true) {
	            if (s.exists(s1.prop("sm378")) != null) {
	                s.wait(0.5);
	                Iterator<Match> a = s.findAll(s1.prop("sm378"));
	                count = count + fu.getsizeofIterator(a);
	                System.out.println("continue");
	            } 
	            else{
	                count = count + 0;
	            }
	            if (s.exists(s1.prop("sm379")) != null) {  
	            	System.out.println("Not find");
	                break;                  
	            }
	            else {  
	                System.out.println("True");
	                s.type(Key.F11,Key.SHIFT);
	            }
	        }


i need to count the number of pictures :s1.prop("sm378") 
 
count = count + fu.getsizeofIterator(a); ----- This sentence is not carried out

could you please tell me how to solve this ?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.