[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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
see: https:/
-------
*******
seems to be related to a problem with HiDPI and scaled monitor setups
https:/
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!
Changed in sikuli: | |
status: | New → Opinion |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.2 |
Changed in sikuli: | |
status: | Opinion → In Progress |
importance: | Undecided → Medium |
description: | updated |
summary: |
[1.1.1] Windows 10: Move mouse for click not working since new JRE and - Windows update + Windows update with Java 8 and HiDPI |
summary: |
[1.1.1] Windows 10: Move mouse for click not working since new JRE and - Windows update with Java 8 and HiDPI + Windows update with Java 8 and HiDPI --- workaround Java 9 and scaling + 100% |
description: | updated |
Changed in sikuli: | |
milestone: | 1.1.2 → 1.1.3 |
summary: |
- [1.1.1] Windows 10: Move mouse for click not working since new JRE and + [1.1.4] 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% |
Changed in sikuli: | |
milestone: | 1.1.3 → 1.1.4 |
summary: |
[1.1.4] 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% + 100% OR try with Java 10 |
summary: |
[1.1.4] 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 10 + 100% OR try with Java 11 |
description: | updated |
description: | updated |
Changed in sikuli: | |
status: | In Progress → Confirmed |
milestone: | 1.1.4 → none |
Changed in sikuli: | |
milestone: | none → 2.1.0 |
summary: |
- [1.1.4] Windows 10: Move mouse for click not working since new JRE and + [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 |
Changed in sikuli: | |
status: | Confirmed → In Progress |
attached this is a test jar
usage:
java -jar MoveMouseAround.jar loops delay
loops and delay are optional integers (positional parameters):
loops: how often should the mouse be moved randomly inside the area (margin of 200 all sides inside screen), default: 5
delay: how many milliseconds should java.awt.Robot wait after a move, default 20 (max 60)
the output is something like this: ment: 1 ScreenDevices
[MoveMouseAround] Using: loops = 5; Robot.autoDelay = 20
[MoveMouseAround] GraphicsEnviron
[MoveMouseAround] Screen: (0,0 1920x1080)
[MoveMouseAround] using area: (200,200 1520x680)
[MoveMouseAround] *** visitCorners of (200,200 1520x680)
[MoveMouseAround] Moved to: (200,200)
[MoveMouseAround] Moved to: (1720,200)
[MoveMouseAround] Moved to: (1720,880)
[MoveMouseAround] Moved to: (200,880)
[MoveMouseAround] Moved to: (200,200)
[MoveMouseAround] *** movingAround in (200,200 1520x680) for 5 times
[MoveMouseAround] Moved to: (1225,347)
[MoveMouseAround] Moved to: (741,717)
[MoveMouseAround] Moved to: (1714,546)
[MoveMouseAround] Moved to: (1670,272)
[MoveMouseAround] Moved to: (1656,424)
if a move is not correct:
[MoveMouseAround] Moved to: (...,...) but is: (..., ...)