findWord does not work

Asked by Seyed Mohammad Hossein Amirkhalili on 2019-01-18


I used this code:

r = Region(530,348,83,50)

and I got this error:

[error] script [ Untitled ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\Users\Test\AppData\Local\Temp\Sikulix_967257492\", line 2, in <module> r.findWord("f1") at org.sikuli.script.Region.findWord(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.ClassCastException: java.lang.ClassCastException: org.sikuli.script.Finder cannot be cast to org.sikuli.script.Match

Question information

RaiMan (raimund-hocke) said : #1

Is a bug - thank you.

created one.

Don't know when it will be fixed, so try the workaround.

Can you help with this problem?

Provide an answer of your own, or ask Seyed Mohammad Hossein Amirkhalili for more information if necessary.

To post a message you must log in.