Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Piano Tiles Bot
- #https://www.crazygames.com/game/magic-piano-tiles
- from pyautogui import *
- import pyautogui
- import time
- import keyboard
- import random
- import win32api, win32con
- def click(x,y):
- win32api.SetCursorPos((x,y))
- win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
- time.sleep(0.09)
- win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
- while keyboard.is_pressed('q') == False:
- if pyautogui.pixel(415, 350)[0] == 0:
- click(415, 350)
- if pyautogui.pixel(483, 350)[0] == 0:
- click(483, 350)
- if pyautogui.pixel(562, 350)[0] == 0:
- click(562, 350)
- if pyautogui.pixel(623, 350)[0] == 0:
- click(623, 350)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement