How can I make sikuli find text on Region and type the same thing as a text its find?

Asked by Parsawit Deshwattanatham on 2019-08-23

Hi, I am lack of knowledge about the code so I wanna ask about what I am going to do.

 So, I want Sikulix to detect a text in Region and then let it type a text that it detected.

Please help,
Best Regards.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Parsawit Deshwattanatham
Solved:
2019-08-25
Last query:
2019-08-25
Last reply:

I look around for half a day and this code is the way out for me!

x = capture(Region)
new_reg = find(x)

type(new_reg.text())