【问题标题】:i am trying to use pyautogui image recognition, and im coming out with a exit code of 0, but its not working我正在尝试使用 pyautogui 图像识别,我的退出代码为 0,但它不起作用
【发布时间】:2021-05-18 01:24:04
【问题描述】:
import pyautogui
import time
from time import sleep
import pyscreeze
def openchrome():
    sleep(5)
    chromeIcon = pyautogui.locateCenterOnScreen('C:\images\PngItem_333605.png')
    print(chromeIcon)
    pyautogui.doubleClick(chromeIcon)

进程以退出代码 0 结束 即使睡眠不起作用,机器人也会在一两秒后停止运行。 提前致谢!

【问题讨论】:

    标签: python image image-recognition pyautogui


    【解决方案1】:

    您是否在代码中进一步调用函数openchrome

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-23
      • 2014-07-13
      • 2020-04-30
      • 1970-01-01
      • 1970-01-01
      • 2023-01-30
      • 2019-11-13
      相关资源
      最近更新 更多