← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #707055]: After upgrade of Java (java 17) and Sikulix (2.0.5) to latest versions, existing Images are not getting identified which used to work before the upgrade

 

Question #707055 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/707055

Description changed to:
After upgrade of Java (java 17) and SikulixApi (2.0.5)  to latest
versions, existing Images are not getting identified which used to work
before the upgrade

Previous State(Before Update)
a.	JAVA Version : Java 8 
b.	Windows OS : Window: 10
c.	Windows Display Setting : 1920 x 1080
d.	Windows Scale and Layout (Change the size of text, apps)   : 125%
e.	SikulixApi Version : 1.1.1
f.	Sikuli Screen object size:  1920 x 1080
  
Code:
      screen = new Screen();
        System.out.println(screen.w);
        System.out.println(screen.h);

Output : 1920, 1080

Current State(After Update)
a.	JAVA Version : Java 17
b.	Windows OS : Windows 10
c.	Windows Display Setting: 1920 x 1080
 d.	Windows Scale and Layout (Change the size of text, apps)   : 125%
e.	SikulixApi Version : 2.0.5
f.	Sikuli Screen object size: 1536 x 864

Code:
      screen = new Screen();
        System.out.println(screen.w);
        System.out.println(screen.h);

Output : 1536, 864

Another Option tried:

Used Settings.AlwaysResize = 0.8f to resize the existing images in
runtime, However only few images are getting identified but not all of
them.

Is there any configuration on SikulixApi to get actual screen size (1920
x 1080) without scaling so that existing images can work, Please advise

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