New question #706490 on SikuliX:
https://answers.launchpad.net/sikuli/+question/706490

Hi,
this one was asked before (and answered) 
(https://answers.launchpad.net/sikuli/+question/670985)
but the answer didn't solve my problem:

In Sikulix IDE I can do:
1. take a screenshot without region information or
2. take a region but without a screenshot.

If I do one after another, they most likely aren't pixel perfect.

I would like to take a "screenshot+region" in 1 step, so I could use it later 
as:

if region1.exists(image1,0):
    click(region1.getLastMatch())
elif region2.exists(image2,0):
    click(region2.getLastMatch())

The reason I want to do this is to speed up the find operations.
In my application the images I want to click are always at the same exact 
locations, so I thought if the image matches the region perfectly, the find 
operation should be fastest.

Each image has its own location.
There can be images with the same location.
There can be images which I don't want to click (ignore).

Is there an easy way to do this, or maybe a different approach?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to