[Sikuli-driver] [Question #261468]: Region with reference of two images

2015-01-31 Thread deva
New question #261468 on Sikuli:
https://answers.launchpad.net/sikuli/+question/261468

I can create region with reference of one image

Ex:

p =s.exists("img1.png")
pr = Region(p.x - 461, p.y - 1, p.w + 464, p.h + 454)

But now i want to create region with reference of two image.

i have one image in right top corner and another image in left bottom corner. 

how do i create region with these two images.

please help on it!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #261468]: Region with reference of two images

2015-01-31 Thread deva
Question #261468 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261468

Description changed to:
I can create region with reference of one image

Ex:

p =exists("img1.png")
pr = Region(p.x - 461, p.y - 1, p.w + 464, p.h + 454)

But now i want to create region with reference of two image.

i have one image in right top corner and another image in left bottom
corner.

how do i create region with these two images.

please help on it!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #261468]: Region with reference of two images

2015-01-31 Thread RaiMan
Question #261468 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261468

Status: Open => Answered

RaiMan proposed the following answer:
version 1.0.1+

p1 =exists("img1.png")
p2 =exists("img2.png")
combined = p1.union(p2)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #261468]: Region with reference of two images

2015-02-01 Thread deva
Question #261468 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261468

Status: Answered => Open

deva is still having a problem:
Thanks for your answer.

i have to handle another case that 2nd image matches top and bottom. so
i have to choose above only.


please help on that

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #261468]: Region with reference of two images

2015-02-03 Thread RaiMan
Question #261468 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261468

Status: Open => Needs information

RaiMan requested more information:
not clear what you have and want

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #261468]: Region with reference of two images

2015-02-03 Thread deva
Question #261468 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261468

Status: Needs information => Open

deva gave more information on the question:
p1 =exists("img1.png")
p2 =exists("img2.png")
combined = p1.union(p2)


I tried the above code to create region with reference of two images. but 2nd 
image is  matches in two places at top and bottom. so i have to choose above 
matches only

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #261468]: Region with reference of two images

2015-02-03 Thread RaiMan
Question #261468 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261468

Status: Open => Answered

RaiMan proposed the following answer:
if an image might be found more than once on the screen, you have either
to restrict the search area or use findAll and afterwards decide which
of the matches is the one you want to use.

the best solution depends on your situation.
Usually restricting the search region is the easier one.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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