Re: [Sikuli-driver] [Question #687690]: Use of a Mask

2020-01-01 Thread Mark McGuinn
Question #687690 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687690

Status: Answered => Solved

Mark McGuinn confirmed that the question is solved:
Many, many thanks for the quick response which appears to have sorted
out the problem.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #687690]: Use of a Mask

2019-12-31 Thread masuo
Question #687690 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687690

Status: Open => Answered

masuo proposed the following answer:
Add parenthesis?
new_img = Pattern("1577396415423.png").mask
==> new_img = Pattern("1577396415423.png").mask()

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #687690]: Use of a Mask

2019-12-31 Thread Mark McGuinn
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:  )

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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp