← Back to team overview

sikuli-driver team mailing list archive

[Question #682736]: sikulixapi 1.1.4 giving wrong match location.

 

New question #682736 on Sikuli:
https://answers.launchpad.net/sikuli/+question/682736

So I was playing around with the sample code, and i can not figure out why 1.1.4 are giving those wrong coordinates on screen,
when finding the Google logo.
This is just a basic java setup with no maven.
when i use 1.1.3 it give correct coordinates.

public static void main(String[] args) {
        Screen s = new Screen();
        Debug.info("Screen: %s", s);

        String img = "googleimg.png";
        String inJarFolder = "./imgs";

        if (ImagePath.add(inJarFolder)) {
            Debug.info("Image Folder in jar at: %s", inJarFolder);
        } else {
            Debug.error("Image Folder in jar not possible: %s", inJarFolder);
        }

        Match target = s.exists(img);
        if (null == target) {
            Debug.error("Not found: ", img);
        } else {
            Debug.info("Found: %s at %s", img, target);
            s.hover();
        }
        Debug.info("... leaving");
}

output of 1.1.3 (correct output):
[error] RunTimeINIT: *** BE AWARE: Running on Java 8+ *** Please report problems ***
[info] Screen: S(0)[0,0 1920x1080] E:Y, T:3.0
[info] Found: googleimg.png at M[344,280 272x92]@S(S(0)[0,0 1920x1080]) S:0.94 C:480,326 [326 msec]
[info] ... leaving
Process finished with exit code 0

output of 1.1.4 (wrong output):
[info] Screen: R[0,0 1920x1080]@S(0)
[info] Found: googleimg.png at M[0,959 271x92]@S(0) S:0.86 C:135,1005 [2602 msec]
[info] ... leaving

Process finished with exit code 0


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