sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22310
Re: [Question #239217]: how to get text from given co-ordinates of the screen or screen region
Question #239217 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/239217
Status: Open => Answered
RaiMan proposed the following answer:
You have to evaluate the region somehow, that contains the text and then
read the text.
Region reg = new Region(...);
String text = reg.text();
You might as well try to simulate a copy action (focus, ctrl-a, ctrl-c)
and then use Env.getClipboard to get the text.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.