How to change/set the Similarity for a String to be searched? --- Not possible!

Asked by Saorabh Singh

I want to search a string in my Emulator Screen,I am using Sikuli in Java.

i Tried below method's but all returned null:

s is object of screen & String to be searched in region is passed as String.

1) Region Question=s.exists("What city",2);
2)Region Question=s.getRegionFromPSRM("What City");

HOW can we change/set the Similarity for a String to be searched??

Actually my requirement is :
Some questions(Random) will be generated in Screen from a group of Question's in database.
So i will get a question from my Database & then i need to search a that Question in screen & then provide a correct Answer for that.

Please let me know a method to find a particular string in Screen.
or a Method to Solve my Problem.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

A given text with find("some text") is either found or not. You cannot define any similarity.

I think, we have already discussed your requirement: what you want is not possible with the current version of Sikuli.

Be aware, that the text related features are still experimental and have some oddities and bugs (see bug 710586).

Can you help with this problem?

Provide an answer of your own, or ask Saorabh Singh for more information if necessary.

To post a message you must log in.