Question #261746 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261746
Status: Open => Answered
RaiMan proposed the following answer:
tested with 1.1.0:
apparently findAll() only returns 1 match.
I simply have to take this as bug, which will surely not be solved in the next
weeks or even months, since problems with the text feature I will not touch
earlier.
Sorry.
this at least found all <Jump> in my text:
Debug.on(3);
Settings.InfoLogs = false;
Settings.ActionLogs = false;
Settings.OcrTextSearch = true;
Region eWin = App.start(App.Type.EDITOR);
eWin.write("\n Jump\n\n Jump and Run\n\nRun and Jump\n");
Region reg = eWin;
while (true) {
Match ms = reg.exists("Jump", 0);
if (ms == null) {
break;
}
ms.highlight(2);
ms.x = eWin.x;
ms.w = eWin.w;
reg = eWin.intersection(ms.below());
}
It seems, that the text search works from top left to bottom right.
--
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