Easy way to take a screenshot and region at the same time (2)
Hi,
this one was asked before (and answered) (https:/
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.
click(
elif region2.
click(
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?
(Edit:)
My current (long) approach is:
1. take a region
2. helper script for saving a screenshot of that region to a file
3. Insert image into main script
4. copy region from helper script to main script
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Mi Me for more information if necessary.