我是 Sikuli 的新手,正在尝试使用一个看起来像这样的非常简单的脚本......
等待并单击 cmds 已使用并且它们正在工作,我面临的问题wait("1513068228396.png",3600)
是不等到图像出现,它等待大约 10 到 15 秒并执行下一个 cmd。我尝试包含一些日志,并尝试使用其他图像到相同的等待 cmd,仍然是相同的结果。
wait("1513067960826.png",60)
click(Pattern("1513066493827.png").targetOffset(-106,2))
sleep(2)
click("1513066637741.png")
sleep(1)
click("1513599247108.png")
sleep(5)
print "wait for my image"
wait("1513068228396.png",3600) # Facing issue in this line
print "found my image"
输出日志:
wait for my image
[debug] Region: find: waiting 3600.0 secs for 1513068228396.png to appear in R[0,0 1920x1080]@S(0)
[debug] Image: reused: 1513068228396.png (file:/D:/softwares/sikuli/SENINFO_V100R002C00SPC700.sikuli/1513068228396.png)
[debug] Region: checkLastSeen: not there
[debug] Region: find: 1513068228396.png has appeared at M[832,379 30x16]@S(S(0)[0,0 1920x1080]) S:0.70 C:847,387 [753 msec]
found my image
任何建议如何解决这个问题。