Hi i cant get my code to work for making a if statement
It just keeps doing the same line for code even those the image there is changed 100% in the image
cast = pyautogui.screenshot('FishingRod.png',region=(465, 26, 901, 102
while startfishing == True:
time.sleep(1)
if pyautogui.locateOnScreen('FishingRod.png', confidence=0.100) is None:
print("Fishing Rod Detected, reeling in")
else:
cast = pyautogui.screenshot('FishingRod.png',region=(465, 26, 901, 102))
print("Fishing Rod Not Detected, waiting")