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

Hi,

  I am trying to use the Pattern mask feature to search for an image. Below is 
the code I have written, but this code causes an exception, is there something 
wrong with the code?

new_img = Pattern("1577396415423.png").mask
if exists ( new_img ):
    print("found it")

The exceptions is:


[error] script [ tepm ] stopped with error in line 6
[error] java.lang.RuntimeException ( sikulix.RuntimeException: find, wait, 
exists: invalid parameter: <bound method Pattern.mask of P(1577396415423.png) 
S: 0.7> )

This is on 2.0.1 on Windows 10.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to