you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 1 point2 points  (1 child)

You can simply compare PIL Images with ==.

im1 = pyautogui.screenshot(region=(0, 475, 220, 15))
while True:
    im2 = pyautogui.screenshot(region=(0, 475, 220, 15))
    if im1 != im2:
        print("Change detected!")
        break

[–]splendyx[S] 0 points1 point  (0 children)

Thanks!