79418934

Date: 2025-02-06 18:08:52
Score: 0.5
Natty:
Report link

Fixed the issue.

    try:
        location = pyautogui.locateOnScreen('1.png', confidence=0.9)
        if pyautogui.locateOnScreen('1.png', confidence=0.9):
            call_count = 0
            if pyautogui.locateOnScreen('1.png', confidence=0.9):
                while call_count <= 7:
                    logging.info(call_count)
                    call_count += 1
                if has_restarted:
                    return
        restarting_function(True)
        restarting_function()
    except pyautogui.ImageNotFoundException:
        pass
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: D3AD_SHOT