Question #676619 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676619
Status: Open => Answered RaiMan proposed the following answer: --- general comment screen.wait(txtImage, 10); String extractText = screen.find(txtImage).text(); This does not really make sense: Match theText = screen.wait(txtImage, 10); // gives the region of the image String extractText = theText.text(); or even shorter: String extractText = screen.wait(txtImage, 10).text() --- your problem As I understand, the region on the screen of the found txtImage contains the text you want to read and this area changes. --- how to: - find some image near the text region, that does not change. - define the region with the text relative to this match - read the text from this region meta code: ref = find(someReferenceImage) textRegion = ref.offset(x, y).grow(....) // x, y and ... have to be evaluated manually txt = textRegion.text() -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp