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

Hi,

I've noticed this issue when trying to capture and print text from a region.  
Possible bug or just maybe i'm doing something wrong.  The issue anyway is this:

I'm capturing text from a region, printing out the text in either notepad or a 
text entry box, at the end of the captured text an enter command is being sent 
through.  This is causing me problems as I need to concatenate the captured 
text with another string, but before the string is joined with another the 
enter command is sent through and moves onto a new line or submits the text 
entry box.  As i'm wanting to enter this into a text box, after i type the 
captured text it is then submitted due to this rogue enter key before my string 
is joined with another.  

Simply doing this in notepad shows what is happening.

reg = Region(Region(316,335,339,24))
myText = reg.text()
wait(2)
openApp ("C:\\Windows\\system32\\notepad.exe")
wait(2)
type (myText)

The text that is captured and pasted is exactly what i am looking for but 
without this enter command at the end.

Any advice or a possible workaround would be great!

Cheers
Alan.


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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to