为什么这些图像搜索给我 random/wrong 错误级别?

Why are these imagesearches giving me random/wrong errorlevels?

下面是我的debugging/problem的一部分。我是 运行 多个图像搜索一个接一个,我想这有一个问题,因为就我而言,这两个实例都应该找到输出,但第二个输出没有找到。然后突然间有时会同时找到:

#SingleInstance Force

WinActivate, Microsoft Solitaire Collection ahk_class ApplicationFrameWindow

x1 = 699
x2 = 739
y1 = 473
y2 = 528

ImageSearch, X, Y, x1, y1, x2, y2, deckd.png
        if ErrorLevel = 2
            {

            }
        else if ErrorLevel = 1
            {
                Msgbox, Didnt Find
            }
        else 
            {
                ;found
                MsgBox Found
            }       
ImageSearch, X, Y, x1, y1, x2, y2, deckd.png
        if ErrorLevel = 2
            {

            }
        else if ErrorLevel = 1
            {
                Msgbox, Didnt Find
            }
        else 
            {
                ;found
                MsgBox Found
            }

尝试使用变体参数:

ImageSearch X, Y, x1, y1, x2, y2, *32 deckd.png
                                  ^^^

有时图像在每次渲染时都会发生微妙的变化