[1.0.1] Sikuli Extension Guide: how to get latest version?

Created by RaiMan on on 2012-11-14
Keywords:
Last updated by:
RaiMan on on 2014-04-21

This faq will be used the next time to tell where to get it and how to use it with Jython (Sikuli scripts) or in Java programs until the final version for 1.1.0 is ready and official docs start to exist.

BE AWARE: the API might change until final version!

*** where to get it
download: https://dl.dropboxusercontent.com/u/42895525/guide.jar

*** how to use it with Java
take care, that sikuli-java.jar and guide.jar are in your class path.

This is a simple example:

package guidetest;
import java.awt.Color;
import org.sikuli.script.*;
import org.sikuli.guide.*;
public class GuideTest {
  public static void main(String[] args) {
    SikuliGuide gd = new SikuliGuide();
    Screen s = new Screen();
    Region r = s.getCenter().grow(50);
    SikuliGuideComponent gr = gd.rectangle().setTarget(r).setColor(Color.yellow);
    gd.circle().setTarget(gr.getRegion().grow(20));
    gd.showNow(2);
  }
}

*** how to use it in SikuliX scripts