sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33894
Re: [Question #269303]: Text Search off error on image [Sikuli java Eclipse]
Question #269303 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269303
Status: Answered => Solved
Tepedino confirmed that the question is solved:
ok, I tried today after lookign a little more at the link:
http://doc.sikuli.org/faq/030-java-dev.html
then I noticed the most ridiculous, stupid thign that was lacking:
the PATH TO THE IMAGES WAS WRONG
I was adding them into the "imgs" folder inside the workspace but was
tryignt o look for them outside it.
so I did this:
package teste;
import java.io.IOException;
import org.sikuli.script.*;
public class teste {
public static void main(String[] args) {
/* Runtime rt = Runtime.getRuntime();
try {
rt.exec(new String[] {"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "http://10.10.1.17:8090/VisActAccessServer/main.atn"});
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} */
Screen s=new Screen();
try{
s.doubleClick("imgs/txt_image.png");
}
catch(FindFailed e){
e.printStackTrace();
}
s.type("This is Nice Sikuli Tutorial!!!!");
}
}
and it worked!
Thanks for the help, I wouldn't notice the little thigns without it.
(note: tried on 1.0.1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.