← 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

    Status: Answered => Open

Joe Harris is still having a problem:
Thank you ! :)
It worked, but Sikuli's Ocr read it as "Howto Copy text from a regions?", and tried on many others too.
Always read the incorrect :( 

Isn't there any copy command in sikuli?

By which we can simply copy the Text in the region, I think maybe
somehow highlight with mouse click, move to right, key.type(Ctrl, "v").
be the only way to get the same text?

So I want to 
Double click on the region (So it highlights) > Press Shift key then press Down key to select the whole line > Press Ctrl v to copy. 

Code :
doubleClick(Region(397,524,14,18))
type(Key.SHIFT+Key.DOWN)

it's doesn't highlights the whole line. I see 
"[log] DOUBLE CLICK on (404,533) 
[log] TYPE "" 

In the message bar for the following. :(

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