New question #261746 on Sikuli:
https://answers.launchpad.net/sikuli/+question/261746

Hi all,

I opened TextEdit, and typed in the following:
Test
Test
Jump
Jump and Run

Then, I use the following code to find the text "jump", expecting that it will 
return 2 results.  But I only got one.  
Here is the code (in Java)
     int count = 0;
     Iterator<Match> matches  = App.focusedWindow().findAll("Jump") // or Test
     while(matches.hasNext()) {
         Match m = matches.next();
         m.highlight(2);
         ++count;
     }

Only the first Jump was highlighted (count = 1)

Is there a way for me to find the 2 "Jump"

Thanks,
kai

-- 
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

Reply via email to