Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Shane Paes posted a new comment:
sure lets wait for @RaiMan's reply.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread masuo
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

masuo posted a new comment:
Please wait @RaiMan' s answer.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Answered => Open

Shane Paes is still having a problem:
@masuo i tried with Python and it worked. How can i confirm that it
works for Java?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread masuo
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Open => Answered

masuo proposed the following answer:
ï¼ Shane
You are using JavaScript?
My example is coded by Python.
Try again by Python.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-26 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Answered => Open

Shane Paes is still having a problem:
I tired the same with IDE on my machine
m = findText("Launchpad")
m.highlight(3)

got this error

javax.script.ScriptException: ReferenceError: "findText" is not defined
in nashorn:mozilla_compat.js at line number 69

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-26 Thread masuo
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Open => Answered

masuo proposed the following answer:
Try simple code.
[for example]
https://drive.google.com/file/d/1RIB7yXdJw8aA4Ui_i0kURxYIgR-VNef9/view?usp=sharing

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-26 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Answered => Open

Shane Paes is still having a problem:
We had  already tried the findText() but it didnt work.

is there any other way we can debug this? Is it possible to have a call
and show you the issue?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-26 Thread RaiMan
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Open => Answered

RaiMan proposed the following answer:
sikulixapi-2.0.4.jar can only be used as a library/dependency in Java
/Java-based projects.

It can run Jython scripts from command line using the option -r as
documented for the idea jar.

as mentioned by Masco above:
try with findText() instead of exists, then nothing else has to be done before.

... meaning all this is not needed:
Settings.OcrDataPath = 
"C:\\Users\\vizqa\\AppData\\Roaming\\Sikulix\\SikulixTesseract\\tessdata";
Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;
Settings.SwitchToText = true;
TextRecognizer.start();

If you use the sikulixidejar, then you can just test simple cases,
before transcribing them to Java code.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-26 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Shane Paes gave more information on the question:
We tried to installed sikulixapi latest version as well but it doesnt
install anything. give the below message in cmd

java -jar sikulixapi-2.0.4.jar
SikuliX API: nothing to do

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-26 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Answered => Open

Shane Paes is still having a problem:
Basically our scenario is, we trying to find a text (Shape) within a region, it 
does not find the text.
We need to find text itself and not a image. so any help on OCR or text 
recognition will be helpful

tried the above suggestion, still it does not work.

tried some more optionsv (Tessaract) as well still no luck.
Settings.OcrDataPath = 
"C:\\Users\\vizqa\\AppData\\Roaming\\Sikulix\\SikulixTesseract\\tessdata";
Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;
Settings.SwitchToText = true;
TextRecognizer.start();
   log.info("Clicking on Box Markup");
  
Region RegionShapeMarkup = new Region(4,4,269,165);
RegionShapeMarkup.highlight(10);
String TextBoxLabelName= "Shape";
Match TextBoxLabelNameFound = 
RegionShapeMarkup.exists(TextBoxLabelName, 10);
 if (TextBoxLabelNameFound != null)
{
RegionShapeMarkup.click(TextBoxLabelNameFound.offset(0, -30));
}

Can you please suggest any other thing that we can try? it will be
really helpful.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-25 Thread masuo
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Open => Answered

masuo proposed the following answer:
image find API was revised in version 2.0.2
There is an answer for your question.

https://sikulix-2014.readthedocs.io/en/latest/news.html#revision-of-the-image-find-api
The old behavior of find(someText) is now switched off in the standard, but can 
be switched on by intention (Settings.SwitchToText). But if switched on, the 
ImageMissing feature is not available. In doubt it is recommended, to change 
the function calls to their text equivalents, if text search is the intention.

https://sikulix-2014.readthedocs.io/en/latest/news.html#revision-of-the-
text-find-api

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-25 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Summary changed to:
findText("string") not working with Sikulixapi 2.0.4

Description changed to:
This is my code

Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;

Region RegionShapeMarkup = new Region(4,4,269,165);
String TextBoxLabelName= "Shape";
Match TextBoxLabelNameFound = RegionShapeMarkup.find(TextBoxLabelName);
if (TextBoxLabelNameFound != null)
{
RegionShapeMarkup.click (TextBoxLabelNameFound.offset(0, -30));
}

the script fails with error
FindFailed: Shape.png: (0x0) in R[4,4 269x165]@S(0)

even though searching for text, script fails with error shape.png not
found.

Test environment:
Windows 10 64bit, JAVA11

Any help on this issue will be appreciated.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp