以下是我的调试/问题的一部分。我正在一个接一个地运行多个图像搜索,我猜这有一个问题因为我可以告诉这两个实例应该输出找到,但第二个输出没找到。然后突然间它会发现两者:
#SingleInstance Force
WinActivate, Microsoft Solitaire Collection ahk_class ApplicationFrameWindow
x1 = 699
x2 = 739
y1 = 473
y2 = 528
ImageSearch, X, Y, x1, y1, x2, y2, deck\5d.png
if ErrorLevel = 2
{
}
else if ErrorLevel = 1
{
Msgbox, Didnt Find
}
else
{
;found
MsgBox Found
}
ImageSearch, X, Y, x1, y1, x2, y2, deck\5d.png
if ErrorLevel = 2
{
}
else if ErrorLevel = 1
{
Msgbox, Didnt Find
}
else
{
;found
MsgBox Found
}
答案 0 :(得分:1)
尝试使用变体参数:
[{"id":0,"name":"Item 0"},{"id":1,"name":"Item 1"},{"id":2,"name":"Item 2"},{"id":3,"name":"Item 3"},{"id":4,"name":"Item 4"},{"id":5,"name":"Item 5"},{"id":6,"name":"Item 6"},{"id":7,"name":"Item 7"},{"id":8,"name":"Item 8"},{"id":9,"name":"Item 9"}]
有时,每次渲染时图像都会被微妙地改变