← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #162592]: How to Copy text from a regions?

 

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

RaiMan proposed the following answer:
If Willie's suggestion (which is the primary solution to try) does not
satisfy you and the text to copy is selectable with mouse and/or
keyboard you might simulate either

-- a copy/paste action (somehow-select-the-text/ctrl-c/click(target-
region)/ctrl-v) or

-- a drag/drop-operation (somehow-select-the-text/mouseDown()/mouseMove
(target-region)/mouseUp()).

If the text is somehow selectable, this method works in any cases - but it needs some more coding and you might have to solve timing problems.
(an example: http://sikuli.org/blog/2010/05/06/extract-text-with-clipboard/)

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.