First steps.

Asked by neitan

Hi, I'm using Windows XP SP3. I try to run the examples of "Sikuli: Using GUI Screenshots for Search and Automation"
When you try to

street_corner = find ()
while not street_corner.inside (). find (). similar (0.7):
popup ( "test")

I get

capture: java.awt.Rectangle[x=0,y=0,width=1280,height=800]
0 matches found
capture: java.awt.Rectangle[x=0,y=0,width=1280,height=800]
1 matches found
1 matches found
[sikuli] [Error] source lineNo: 2
[sikuli] [Error] Traceback (innermost last):
  File "C:\DOCUME~1\9335~1\LOCALS~1\Temp\sikuli-tmp4882733059617778753.py", line 2, in ?
AttributeError: similar

This is my first experiments with sikuli, Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sergey Darovskih (darovskih) said :
#1

use
find(Pattern(<img>).similar(0,7))

Can you help with this problem?

Provide an answer of your own, or ask neitan for more information if necessary.

To post a message you must log in.