← Back to team overview

sikuli-driver team mailing list archive

[Question #235487]: Recognize text (OCR) and paste it to a document?

 

New question #235487 on Sikuli:
https://answers.launchpad.net/sikuli/+question/235487

Here's what I would like to accomplish:

1.) Select a region on the screen.
2.) Do OCR on the text within that region.
3.) Switch to a different tab in the browser.
4.) Click on a specific location.
5.) Paste the recognized text.

I know how to do 1, 3, and 4.

Could someone help me with steps 2 and 5?

Region(1041,194,250,123)
{recognize OCR text somehow}  <------ NEED HELP
click(Location(170,300)) #Click outside of Flash to regain focus
wait(1)
type("1", KeyModifier.CTRL) #Chrome shortcut - go to 1st tab
click(Location(80,280)) #Cell A2
{paste the recognized text somehow} <---- NEED HELP

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