我正在使用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, region=(689, 250, 640, 1000)))
if len(found) >= 2:
for i in found:
pyautogui.click(i)
print("Got a match")
time.sleep(2)
break
问题是:它会点击与之匹配的每个图像。。。为什么?
目前没有回答
相关问题 更多 >
编程相关推荐