问题描述
我正在使用 pyautogui 并且我正在尝试制作一个可以解决难题的脚本。谜题告诉我点击这对(有两个的图像) 到目前为止,我有这个代码:
if pyautogui.locateCenterOnScreen('TapPair.png',confidence=0.9,region=(689,250,640,1000)) != None:
for image in images:
found = list(pyautogui.locateallOnScreen(image,confidence=0.99,1000)))
if len(found) >= 2:
for i in found:
pyautogui.click(i)
print("Got a match")
time.sleep(2)
break
问题是:它会点击它匹配的每个图像......为什么?
编辑:这是拼图的一个例子
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)