Untitled
unknown
plain_text
10 months ago
703 B
2
Indexable
import pyautogui from time import sleep import keyboard import win32api import win32con pyautogui.click(1011,376, duration=1) def click(x, y): win32api.SetCursorPos((x,y)) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0) sleep(0.05) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0) while keyboard.is_pressed('1') == False: if pyautogui.pixelMatchesColor(899,442, (0, 0, 0)): click(899,442) if pyautogui.pixelMatchesColor(969,445, (0, 0, 0)): click(969,445) if pyautogui.pixelMatchesColor(1040,438, (0, 0, 0)): click(1040,438) if pyautogui.pixelMatchesColor(1113,436, (0, 0, 0)): click(1113,436)
Editor is loading...
Leave a Comment