Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui
- import time
- import keyboard
- from PIL import ImageGrab
- pyautogui.PAUSE = 0
- #time.sleep(3)
- #pyautogui.click(540,420)
- while True:
- #Collum One: 420, 350
- #Collum Two: 500, 350
- #Collum Three: 570, 350
- #Collum Four: 640, 350
- if ImageGrab.grab().getpixel((800, 800))[0] == 0:
- #pyautogui.click(420,350)
- print("Collum One!")
- if ImageGrab.grab().getpixel((1000, 800))[0] == 0:
- #pyautogui.click(500,350)
- print("Collum Two")
- if ImageGrab.grab().getpixel((1140, 800))[0] == 0:
- #pyautogui.click(570,350)
- print("Collum Three")
- if ImageGrab.grab().getpixel((1280, 800))[0] == 0:
- #pyautogui.click(640,350)
- print("Collum Four")
- print("End Loop")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement