Advertisement
em1tao

Untitled

Aug 15th, 2022
840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from keyboard import read_key
  2. from pyscreenshot import grab
  3. from pyautogui import click
  4.  
  5. print("Ready!")
  6. while key:=read_key() not in ("p", "P", "Π·", "Π—"):
  7.     try:
  8.         if key in ("q", "Q", "ΠΉ", "Π™"):
  9.             image = grab(childprocess=False)
  10.             r, g, b = image.getpixel((380,670))
  11.             if r == 255 and g == 255 and b == 255:
  12.                 click(x=1750, y=930)
  13.     except Exception as e:
  14.         print(f"Error: {e}")
  15.         continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement