【发布时间】: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