Code Monkey home page Code Monkey logo

Comments (5)

RaiMan avatar RaiMan commented on May 23, 2024

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.

RaiMan avatar RaiMan commented on May 23, 2024

see bug:
https://bugs.launchpad.net/sikuli/+bug/1730645

from sikulix1.

bartclark avatar bartclark commented on May 23, 2024

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.

RaiMan avatar RaiMan commented on May 23, 2024

@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.

RaiMan avatar RaiMan commented on May 23, 2024

no longer relevant with Java 11+

from sikulix1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.