GuitarHero

Anonymous
python
03/04/2026 10:55 AM
968 B
9
Indexable
import pyautogui as pg
import keyboard
import time

# click começar tocar

pg.PAUSE = 0.05

# click começar tocar
time.sleep(0.1)
pg.click(963,528,duration=2)

# pixelMatchsColor
# def pixelMatchsColor(x, y, color,tolerance):

# | ΔE   | Interpretação               |
# | ---- | --------------------------- |
# | < 1  | Diferença imperceptível     |
# | 1–2  | Apenas perceptível          |
# | 2–10 | Visível                     |
# | > 10 | Cores claramente diferentes |

while not keyboard.is_pressed('1'):
    if  pg.pixelMatchesColor(950,618,(255,71,87),tolerance=10):
         pg.press('a')
    if  pg.pixelMatchesColor(1100,605,(55,66,250),tolerance=10):
         pg.press('d')
Editor is loading...
Leave a Comment