These are chat archives for RaiMan/SikuliX-2014

3rd
Jul 2015
Raimund Hocke
@RaiMan
Jul 03 2015 16:23
@Fanch- should be fixed with build 2015-07-03+
Raimund Hocke
@RaiMan
Jul 03 2015 16:28
@Tiogshi Everything you need is available starting at http://sikulix.com. No need to fiddle around with the github project. The scripting docs show the official API and the same goes for the javadocs (pointer on the nightly build page). Region.doFind() is for internal use only - use find(), wait() and exists().
Tiogshi Laj
@Tiogshi
Jul 03 2015 17:32
@RaiMan I know it's internal-use only; but when I called find() with a timeout of zero and an image pattern (as opposed to a string image filename), Region.java:2764 (at current head) was throwing null pointer exception because repeating is null.
Tiogshi Laj
@Tiogshi
Jul 03 2015 17:38
@RaiMan I tried the forsetup jar on the Nightly page, but I wanted JavaDoc I could attach to the JAR in Eclipse without an internet connection, and after a couple hours of messing about looking for the right stuff, I just went straight to the project and recompiled it myself. I could find no page anywhere on the website where I could download both the API JAR and a JavaDoc JAR for the same release, and I could not get the "setup" jars to download any JavaDoc JARs.
Raimund Hocke
@RaiMan
Jul 03 2015 17:42
@Tiogshi --- javadocs: As mentioned on the homepage: just setup your stuff in Eclipse as a Maven project with the mentioned dependency and you get your javadoc - Maven just does this for you.
Raimund Hocke
@RaiMan
Jul 03 2015 17:48
@Tiogshi --- find / NPE: seems indeed to be a problem. use wait() instead until fixed.
Raimund Hocke
@RaiMan
Jul 03 2015 18:13
@Tiogshi --- find/NPE: only happens, if you actively set the region's autoWaitTimeout to 0 using region.setAutoWaitTimeout(0), which apparently noone has done the last months ;-) Will be fixed though with the next nightly. Until then (and generally IMHO) wait(image, 0) or even exists(image, 0) is the better solution.
Tiogshi Laj
@Tiogshi
Jul 03 2015 18:15
@RaiMan Is the only difference between find(PSI, timeout) and exists(PSI, timeout) the thrown exception vs. the null return, respectively?
Raimund Hocke
@RaiMan
Jul 03 2015 18:24
@Tiogshi yes
Tiogshi Laj
@Tiogshi
Jul 03 2015 18:25
@RaiMan 'k, thanks for the help.
Raimund Hocke
@RaiMan
Jul 03 2015 18:27
no problem. I thank you for finding a really hidden bug ;-)