sikulixapi 1.1.4 giving wrong match location.

Asked by phoyum on 2019-08-09

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();"Screen: %s", s);

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

        if (ImagePath.add(inJarFolder)) {
  "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 {
  "Found: %s at %s", img, target);
        }"... 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

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

sorry, but I cannot find a difference in the behavior of 1.1.3 and 1.1.4 when looking for the same image, that is visible on the screen at runtime.

Can you help with this problem?

Provide an answer of your own, or ask phoyum for more information if necessary.

To post a message you must log in.