sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48583
[Question #674079]: Click where an image was found
New question #674079 on Sikuli:
https://answers.launchpad.net/sikuli/+question/674079
Sorry if this question is stupid I am not programming savvy in any way and I just try to write simple scripts. I browsed around and didn't find an answer.
I want to click on a fading image that could be anywhere on the screen. The simple solution is to use
if exists(image)
click(image)
However, since the image is fading sometimes the image passes the similarity threshold between the "if exists(image)" and "click(image)", resulting in a Find Failed error. Since I don't know where the icon is I can't use
if Region.exists(image)
click(Region)
either.
Is there an easy way to click exactly where an image was found when you don't know where the image will be?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.