Apr-21-2023, 04:19 PM
(This post was last modified: Apr-21-2023, 04:20 PM by deanhystad.)
Don't put this in your loop if it is only supposed to happen once.
#TARGET ENEMY <<< THIS IS WHAT I NEED TO ONLY RUN ONE TIME>>>> if pyautogui.pixel (1096,127) [0] == 16: click(1096,127)These are getting called each time the loop executes.
if pyautogui.pixel (1351, 1267) [0] == 251: if pyautogui.pixel (1452, 1271) [0] == 158 if pyautogui.pixel (1351, 1267) [0] == 251:If the associated code blocks don't execute it means the pixel[0] != 251 or 158.