Comments (5)
Try with Java 10:
the net says, that Java 10 now automatically scales Java apps like SikuliX IDE run as
java -jar sikulix.jar
I cannot test it, since I do not have a hiDPI display.
But I can confirm, that on my MacBook Pro Retina the scaling worked since Java 7 and now with Java 10 everything is clear and non-blurry (hence something has again changed to even better).
from sikulix1.
see bug:
https://bugs.launchpad.net/sikuli/+bug/1730645
from sikulix1.
Has anyone with a hiDPI display and newer versions of Java tried this? Wow! This would be incredibly useful (even if you had to match 'factors' of scaling....as in the past switching to my MacBook Pro 15" broke most scripts).
bc
from sikulix1.
@bartclark
If you know the scaling factor, that has to be applied to all images, to work in the new environment, then you can use
Settings.AlwaysResize = <factor>
where <factor>
is a decimal denoting the scaling to be applied.
Internally the scaling will be applied to every image before it is used in search.
Just tested on Windows 10:
-
with Java 8 having taken images with a scaling factor of 100% (Windows screen settings) a factor of 1.2 helps, when running the script with scaling of 125%.
-
with Java 13 nothing has to be done in this scenario. The search works and even the mouse position is correct.
(if you are interested in using Java 13 on Windows 10, come back for the HowTo)
I now really have to find a way now to understand all this, be able to test it and tell SikuliX how to deal with it - and talk about in the docs finally.
from sikulix1.
no longer relevant with Java 11+
from sikulix1.
Related Issues (20)
- IDE: NameError after editing script
- IDE: Add utf-8 spec when running a selection of lines
- IDE: A region changed by clicking on region image is still the old one at next run - workaround
- App class: Windows: identify app by process name
- TERMINATING: problem with native library: libopencv_java430.dylib HOT 2
- UI Scaling for HDPI Screens does not work
- isValidImageFilename throws java.lang.IllegalArgumentException
- Issue when trying to connect a tiger vnc server HOT 1
- sikulixIDE 2.0.x ImportError HOT 1
- VS Code extension for SikuliX scripts HOT 1
- Is there a way to generate long clicks (10 seconds +) on actionable elements? HOT 2
- Screen.click(pattern) returns FindFailed error right after screen.has(pattern) returned true. HOT 2
- Latest sikulix1api library contains dependencies with reported security vulmeralibilies
- OCR(region.text()) is detecting wrong text, when text is underlined HOT 6
- Write access to repository's wiki HOT 1
- Wiki cannot be checked out in windows HOT 2
- Exception in thread "Thread-22" java.lang.ExceptionInInitializerError HOT 9
- How to connect database influxdb HOT 1
- Problem with transparency
- Easy way to ignore the background for image search? --- use images with transparent background HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sikulix1.