← Back to team overview

sikuli-driver team mailing list archive

[Bug 1730645] Re: [2.0.0] Windows 10: Move mouse for click not working since new JRE and Windows update with Java 8 and HiDPI --- workaround Java 9 and scaling 100% OR try with Java 11

 

@garimapriya89
Please do not add comments containing questions to other questions/bugs, that are not definitely about the same context.
Always start with your own new question.

your problem:
before working against some webdriver, you should make basic experiences against the real screen with a real browser.

your snippet:
Screen screen = new Screen();
//Thread.sleep(3000);
//Debug.info("Screen: %screen", screen);

ImagePath.setBundlePath("C:\\Users\\gp0924\\Desktop\\LatestSikuliImages");
String img = "About.PNG";
Match match = screen.exists(img);
if (null != match) {
  match.highlight(); //already logs the match
  match.click(); // do not search again
} else ;//not found

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1730645

Title:
  [2.0.0] Windows 10: Move mouse for click not working since new JRE and
  Windows update with Java 8 and HiDPI --- workaround Java 9 and scaling
  100% OR try with Java 11

Status in Sikuli:
  In Progress

Bug description:
  see: https://github.com/RaiMan/SikuliX1/issues/27
  --------------------------------------------------
  ********************* Java problem
  seems to be related to a problem with HiDPI and scaled monitor setups
  https://bugs.openjdk.java.net/browse/JDK-8196030

  The problem seems to exist with Java 8 not supporting HiDPI.

  Using Java 9 or 10 on HiDPI systems with a scaling of 100% seems to
  work

  Using Java 11 these experiences are reported:
  early build of jdk 11 and sikuli 1.1.4 is working good for hidpi, but still we observed few issues mentioned below:

  1) Sikuli scripts written using 4k (3840*2160) with recommended
  scaling (300%) is working only for the same recommended settings. If
  we change the resolution to 2K or 1080P or below , and also if we
  change scaling, scripts are failing

  2) Sikuli scripts written on 2k (2560*1600) with recomended scaling (200%) is working for for resolutions below 2k like 800*600 to 1920*1080 (Downscaling is working with this) and for 4k it is not working (Upscaling is not working)
  -------------------------------------------------

  wondering if anyone else is seeing this.

  I install the latest big update for Windows this morning and also
  accepted an update to the latest JRE.

  Now my when Sikuli moves the mouse to click on a match it doesn't land
  on the coordinates.   It even recognizes that it missed and has an
  error message saying it tried to move the mouse to (x, y), but landed
  on (p, q) instead.

  Any idea what is happening and how to fix it?

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1730645/+subscriptions


References