找到你要的答案

Q:Is it possible to click and drag an image with Sikuli until the image is no longer present?

Q:可以单击并拖动图像到图像Sikuli不再存在?

So using the dragDrop feature of Sikuli I've managed to click and image and drag it to x,y coordinates.

If multiple of the same images are present in succession, is it possible to click an image and then drag the mouse vertically to a point where the image is no longer present?

所以使用拖放功能的Sikuli我设法点击图像并将它拖到x,y坐标。

如果连续存在相同图像的多个,是否有可能单击图像,然后将鼠标垂直拖动到图像不再存在的点上?

answer1: 回答1:

You could use:

while exists("image.png"):
     # do something with the image

你可以用:

while exists("image.png"):
     # do something with the image
answer2: 回答2:

Using this you can drag your images to the same point wherever they are located:

 x = find (Point picture)

 for y in findAll (image to drag):

        dragDrop (y,x)

使用此您可以拖动您的图像到同一点,无论他们位于:

 x = find (Point picture)

 for y in findAll (image to drag):

        dragDrop (y,x)
python  sikuli