Re: [Sikuli-driver] [Question #690362]: logging: Display only the IO Error

2020-04-30 Thread xyz_User
Question #690362 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690362

xyz_User gave more information on the question:
Another question instead of making another thread, is there any way to
have sikuli convert images to a standard so that all displays 4K / HD /
etc can all detect the images?

-- 
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 #690362]: logging: Display only the IO Error

2020-04-30 Thread xyz_User
Question #690362 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690362

Status: Solved => Open

xyz_User is still having a problem:
Hmm sikuli seems to be automatically deleting the log file, is there any
way to save 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 #690362]: logging: Display only the IO Error

2020-04-30 Thread xyz_User
Question #690362 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690362

Status: Open => Solved

xyz_User confirmed that the question is solved:
Found the answer thanks!

-- 
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 #690362]: logging: Display only the IO Error

2020-04-30 Thread xyz_User
New question #690362 on Sikuli:
https://answers.launchpad.net/sikuli/+question/690362

Is it possible to log just the IO error and not the last call back?


-- 
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 #690356]: how to Copy image in the body of mail

2020-04-30 Thread muni
New question #690356 on Sikuli:
https://answers.launchpad.net/sikuli/+question/690356

Hello friends,
I would need your help in copying image in body of the mail,is it possible??
so far i know we can attach mail.Below is the code i have to attach mail.
def outlook(): 
click(Pattern("1588262466233.png").targetOffset(0,1))
wait(1)
img = capture(Region(1,0,1893,1125), "file1")
wait(1)
img2 = capture(Region(1,0,1893,1125), "file2")
shutil.move(img2, os.path.join(r'C:\Users\ramamun\Downloads\Sikuli', 
"file2.png"))
wait(3)


subprocess.call(["C:\Program Files (x86)\Microsoft 
Office\Office15\OUTLOOK.EXE", "/c", "ipm.note",  "/m",  
"munivenkata.ram...@db.com=Itrac Dashboard checks%20-SOW=Hello 
Muni%20SOW Checks have been completed%20For Itrac", "/a", img])

#Screen(1)
wait(4)
click(Pattern("1584356722262.png").similar(0.77).targetOffset(-13,0))
wait(2)
#type(KeyModifier.ALT+Key.S)

click(Pattern("1588270342551.png").targetOffset(-37,-18))
wait(2)

-- 
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 #690346]: Find gives different result when using Pattern attributes on code than using the IDE pane

2020-04-30 Thread RaiMan
Question #690346 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690346

Status: Open => Answered

RaiMan proposed the following answer:
I do not understand the inner loop (range(laps)), which simply does 5
times the same exists()?

What is the intention to use Pattern()..mask()?

If only the size of the image varies, then a repeated exists() would be
sufficient with the image resized with a stepping of 1 pixel between a
min-size and a max-size should reveal a match with the best score.

Hence you have to calculate the resize factor out of the width or
height.

-- 
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 #690161]: getting FindFailed error in headless mode

2020-04-30 Thread RaiMan
Question #690161 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690161

Status: Open => Answered

RaiMan proposed the following answer:
f = Finder(shot)
match = f.find(image)

upper left corner of shot is (0,0)

-- 
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 #690161]: getting FindFailed error in headless mode

2020-04-30 Thread Karan Joshi
Question #690161 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690161

Status: Answered => Open

Karan Joshi is still having a problem:
Hi RaiMan, Thanks for the response !

RaiMan : As I understand, it is possible to create a screenshot using Selenium 
features in headless mode.
Karan : As per your above statement, I have taken Screenshot and I have image 
of target object whose location I want.

RaiMan : You could use this shot, to find your target in it and calculate the 
click location.
Karan : In headless mode, I am unable to find location of target object. Can 
you please suggest, how to get location of target object?
(With the help of screenshot and image of target object, is it possible to get 
location without opening any window using sikulix (headless)??)

-- 
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 #690346]: Find gives different result when using Pattern attributes on code than using the IDE pane

2020-04-30 Thread unomartin
Question #690346 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690346

Description changed to:
I have some images that are of different size than the ones on screen, so I 
made a script to find which resize and similarity parameters best ressemble 
what its displayed.
What I got is that the script gets a match on every size and similiarity value, 
however the Pattern preview pane on the IDE works as intended and matches with 
similarity values of 0.88 and less (though it doesn't seem to use the resize 
value).
It's not clear to me if I'm doing something wrong so I leave the short script 
here so you can look at it and find if there is any way to make it work with 
SikuliX.
Ninja edit: I'm using SikuliX 2.04 IDE on a VM with Win 7 Pro 64bits
***
import csv

raw = []
laps = 5
relevant_area = Region(150,585,55,55)
fieldnames = ['SIZE', 'PRECISION', 'AVG_SCORE', 'COUNT']
with open('O:\\best_pattern_modifiers_output.csv', mode='wb') as csv_file:
output_writer = csv.writer(csv_file, dialect='excel', delimiter=';')
output_writer.writerow(fieldnames)
for precision in range(51, 101):
for size in range(50,101, 10):
for lap in range(laps):
found_match = 
relevant_area.exists(Pattern("icon_selection_small_left_t_s.png").resize(round(size
 / 100, 1)).similar(precision / 100).mask(), 0)
if found_match:
raw.append(found_match.getScore())
n = len(raw)
if n >= (int(round(laps / 2)) + 1):
avg = round(sum(raw) / n, 2)
output_writer.writerow((size, precision, avg, n))
raw = []

-- 
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 #690346]: Find gives different result when using Pattern attributes on code than using the IDE pane

2020-04-30 Thread unomartin
Question #690346 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690346

Description changed to:
I have some images that are of different size than the ones on screen, so I 
made a script to find which resize and similarity parameters best ressemble 
what its displayed.
What I got is that the script gets a match on every size and similiarity value, 
however the Pattern preview pane on the IDE works as intended and matches with 
similarity values of 0.88 and less (though it doesn't seem to use the resize 
value).
It's not clear to me if I'm doing something wrong so I leave the short script 
here so you can look at it and find if there is any way to make it work with 
SikuliX.
***
import csv

raw = []
laps = 5
relevant_area = Region(150,585,55,55)
fieldnames = ['SIZE', 'PRECISION', 'AVG_SCORE', 'COUNT']
with open('O:\\best_pattern_modifiers_output.csv', mode='wb') as csv_file:
output_writer = csv.writer(csv_file, dialect='excel', delimiter=';')
output_writer.writerow(fieldnames)
for precision in range(51, 101):
for size in range(50,101, 10):
for lap in range(laps):
found_match = 
relevant_area.exists(Pattern("icon_selection_small_left_t_s.png").resize(round(size
 / 100, 1)).similar(precision / 100).mask(), 0)
if found_match:
raw.append(found_match.getScore())
n = len(raw)
if n >= (int(round(laps / 2)) + 1):
avg = round(sum(raw) / n, 2)
output_writer.writerow((size, precision, avg, n))
raw = []

-- 
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 #690346]: Find gives different result when using Pattern attributes on code than using the IDE pane

2020-04-30 Thread Martin Perrero
New question #690346 on Sikuli:
https://answers.launchpad.net/sikuli/+question/690346

I have some images that are of different size than the ones on screen, so I 
made a script to find which resize and similarity parameters best ressemble 
what its displayed.
What I got is that the script gets a match on every size and similiarity value, 
however the Pattern preview pane on the IDE works as intended and matches with 
similarity values of 0.88 and less (though it doesn't seem to use the resize 
value).
It's not clear to me if I'm doing something wrong so I leave the short script 
here so you can look at it and find if there is any way to make it work with 
SikuliX.
***
import csv

raw = []
laps = 5
relevant_area = Region(150,585,55,55)
fieldnames = ['SIZE', 'PRECISION', 'AVG_SCORE', 'COUNT']
with open('O:\\Intercambio\\Captain 
Tsubasa\\best_pattern_modifiers_output.csv', mode='wb') as csv_file:
output_writer = csv.writer(csv_file, dialect='excel', delimiter=';')
output_writer.writerow(fieldnames)
for precision in range(51, 101):
for size in range(50,101, 10):
for lap in range(laps):
found_match = 
relevant_area.exists(Pattern("icon_selection_small_left_t_s.png").resize(round(size
 / 100, 1)).similar(precision / 100).mask(), 0)
if found_match:
raw.append(found_match.getScore())
n = len(raw)
if n >= (int(round(laps / 2)) + 1):
avg = round(sum(raw) / n, 2)
output_writer.writerow((size, precision, avg, n))
raw = []


-- 
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 #690210]: OCR Tweaking

2020-04-30 Thread chyen
Question #690210 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690210

Status: Answered => Solved

chyen confirmed that the question is solved:
Thanks Raimund and 2.0.5 solved my issue wonderfully!

-- 
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 #690210]: OCR Tweaking

2020-04-30 Thread chyen
Question #690210 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690210

chyen 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 #690340]: 2.0.5

2020-04-30 Thread RaiMan
Question #690340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690340

Status: Open => Solved

RaiMan changed the question status:
the next days.

-- 
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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application

2020-04-30 Thread RaiMan
Question #690084 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690084

Status: Open => Needs information

RaiMan requested more information:
again: what about the printout?

-- 
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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application

2020-04-30 Thread Kunal Deshpande
Question #690084 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690084

Status: Answered => Open

Kunal Deshpande is still having a problem:
I created a path as you said and also checked using new
File(image).exists() and its is printing  “true” on cmd and also the
path is correct.

-- 
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 #690340]: 2.0.5

2020-04-30 Thread Jeff_Vallis
New question #690340 on Sikuli:
https://answers.launchpad.net/sikuli/+question/690340

Any Idea when 2.0.5 will be released
Waiting for the fix on
https://bugs.launchpad.net/sikuli/+bug/1871026


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