← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #178933]: Java: How to use images captured with Sikuli IDE

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Principally it is possible that way.

But there is no need to split the .sikuli folder. Leave it as is, so you
can come back and open it again with Sikuli IDE to change something with
the captured images or capture new ones. The .py file does no harm in
Java ;-)

So in your Java code you have to use a correct filename

s = new Screen(); 
s.find("absolute-path-to-images.sikuli\\some-image.png");

should work.

when using relative paths, the image folder must be in the right place
relative to your Eclipse runtime environment.

Alternatively you can use Sikuli's image path feature to let Sikuli find
the images itself (no need to specify a path with the images).

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