[英]i am trying to use pyautogui image recognition, and im coming out with a exit code of 0, but its not working
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)
Process finished with exit code 0 even the sleep is not working, the bot stops runing after a second or two.即使睡眠不工作,进程也以退出代码 0 结束,机器人在一两秒后停止运行。 thanks in advance!
提前致谢!
Do you call the function openchrome
further in the code?您是否在代码中进一步调用 function
openchrome
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.