← Back to team overview

sikuli-driver team mailing list archive

[Question #680957]: Find an image gives error

 

New question #680957 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680957

I am a newbie, and did not find an answer in forums. Using Windows 10 & 1.1.4 IDE, I double click my app icon, and another double click to launch it into the app where it displays some images.

- I took a screenshot of the app icon, added doubleClick()
- I took another screenshot of the area to double click to launch into the image display, added doubleClick() there too.

So far so good, launches as expected. Next, 

- took a screenshot of the app and saved into the folder.
- next:  match = "C:\SikuliX\pw1.sikuli\1558389881477.png"
- returnMatch = find(match)

The screen capture png is roughly 2500 x 1400, and my screen is ultraHD (3480x2160). I read in one of the posts to have the screen capture smaller than the screen.

On the Run, it launches the app, but gives an error.
The error output is:
[log] DOUBLE CLICK on L[113,546]@S(0) (578 msec)

[log] DOUBLE CLICK on L[1276,616]@S(0) (575 msec)
[debug] Region: find: waiting 0 secs for C:/SikuliX/pw1.sikulim8389881477.png to appear in R[0,0 2560x1440]@S(0)
[debug] Region: find: C:/SikuliX/pw1.sikulim8389881477.png did not appear [0 msec]
[debug] Region: handleFindFailed: C:\SikuliX\pw1.sikulim8389881477.png
[error] script [ pw1 ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\SikuliX\pw1.sikuli\pw1.py", line 5, in <module> returnMatch = find(match) Line 2407, in file Region.java 
at org.sikuli.script.Region.find(Region.java:2407)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
org.sikuli.script.FindFailed: FindFailed: C

:/SikuliX/pw1.sikulim8389881477.png not loaded Line 2407, in file Region.java 

Am I doing something wrong? I read the info on matching, and this seems like it should since the images are exactly the same except for resolution.



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.