← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204177]: Sikuli-Script doesn't find the files in Netbeans

 

Question #204177 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204177

    Status: Open => Answered

RaiMan proposed the following answer:
Just tested with Netbeans 7.2:
This perfectly works for me.

package siktest;

import org.sikuli.script.*;

public class SikTest {
    public static void main(String[] args) throws FindFailed {
        Screen s = new Screen();
        s.find("test.png");
        s.getLastMatch().highlight(2);
    }
}

this is in the Netbeans folder as folder siktest containing the Java
stuff.

As mentioned above: the reference folder for relative filenames is the project folder.
So in this case, the image is found at siktest/test.png

In the other case having an image folder in the project and saying:
        s.find("images/test.png");
It is found as well in
siktest/images

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