Re: [Sikuli-driver] [Question #692503]: Custom image path for 1 function

2020-08-29 Thread RaiMan
Question #692503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692503

Status: Open => Answered

RaiMan proposed the following answer:
The docs would have helped:
Pattern(Image).similar(...)

-- 
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 #692649]: Image Matching

2020-08-29 Thread Jeff_Vallis
New question #692649 on Sikuli:
https://answers.launchpad.net/sikuli/+question/692649

2.0.4-2020-03-14_08:01/Mac10.15.6/Java13(64)13.0.1+9

Is there anyway to find out what the matching level is from a exists or find 
without looping through from matching 0.70 to 0.99

also  is v_Matching 1.00 the correct syntax for exact match
v_Image = Pattern(v_Image).similar(v_Matching)


-- 
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 #692649]: Image Matching

2020-08-29 Thread RaiMan
Question #692649 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692649

Status: Open => Answered

RaiMan proposed the following answer:
--- exact match:
Pattern(...).exact() 
which is the same as 
Pattern(...).similar(0.99)

--- match score
if someRegion.exists(...):
score = someRegion.getlastMatch().getScore()

or
match = someRegion.exists(...)
if match:
 score = match.getScore()

-- 
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 #692503]: Custom image path for 1 function

2020-08-29 Thread xyz_User
Question #692503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692503

Status: Answered => Solved

xyz_User confirmed that the question is solved:
Thank you, you are always kind to the nubs!

-- 
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 #692503]: Custom image path for 1 function

2020-08-29 Thread xyz_User
Question #692503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692503

xyz_User confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 #692503]: Custom image path for 1 function

2020-08-29 Thread xyz_User
Question #692503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692503

Status: Solved => Open

xyz_User is still having a problem:
def find_img_custom_location():
image1 = r"C:\temp\test_image.png"
if Pattern(image1).similar(0.85):
click(image1)


This works however there's no way it's 85% accurate D: 
i scribbled the image up pretty bad and it still finds it =/

-- 
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 #692503]: Custom image path for 1 function

2020-08-29 Thread Manfred Hampl
Question #692503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692503

Status: Open => Answered

Manfred Hampl proposed the following answer:
Has to be
if exists(Pattern(image1).similar(0.85)):
instead of
if Pattern(image1).similar(0.85):

-- 
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 #692656]: PLEASE HELP! Use Python in SikuliX IDE?

2020-08-29 Thread Pedro Lebre
New question #692656 on Sikuli:
https://answers.launchpad.net/sikuli/+question/692656

Hello friends.

I need a little help getting back on track.

I have used SikuliX 1.0 (I think) since ~2013. Recently, I had to change work 
computers and the newest version was installed which I believe is Sikuli X 
2.0.4 but it looks VERY different and none of my old files work.

I believe in SikuliX 1.0 from docs.sikuli.org was in python but I could be very 
wrong. I am not a programmer but used Sikuli to automate silly little data 
entry projects. All of them were very simple click and type projects and I 
created over 200 of them. My code is very simply, something like this:

#Type Column Name (from a spreadsheet)
type(row['Last Name'])
type('\t')
type('\t')

type(row['First Name'])
type('\t')
type('\t')


#TYPE SSN
type(row['SSN'])
type('\t')

#TYPE DOB
type(row['Month'])
type('\t')
type(row['Day'])
type('\t')
type(row['Year'])
type('\t')

But none of my files work with SikuliX 2.0.4 and I think it's using a different 
language. Java? I even tried simple code like click and type and it did not 
work.

What am I doing wrong? Please explain to me like I am 5 years old. I am not a 
programmer.

Thank you so much.

-- 
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 #692656]: PLEASE HELP! Use Python in SikuliX IDE?

2020-08-29 Thread RaiMan
Question #692656 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692656

Status: Open => Needs information

RaiMan requested more information:
How do you run the scripts? Do you use the IDE?

If SikuliX is installed correctly it should run your scripts (the
standard still is Python(Jython)).

What are the symptoms when you say "But none of my files work"?

Any error messages?

-- 
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