sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29338
Re: [Question #257947]: Is it possible to select an image automatically from array of multiple images based on their availibility on screen at runtime?
Question #257947 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/257947
Status: Open => Answered
RaiMan proposed the following answer:
You have to use different image sets.
In your case you should organize the differing images in different
folders, but with the same image filename.
At runtime the common images (valid for all cases) are loaded from the bundle path (usually script folder).
To select one of the above image sets, you just have to add the respective folder to the image path using addImagePath().
So you can use the same script without modification for different
situations.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.