-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
24 lines (24 loc) · 705 Bytes
/
Copy pathbot.py
File metadata and controls
24 lines (24 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
while keyboard.is_pressed('e')== False :
if keyboard.is_pressed('a')==True :
continue
''''
These valuse changes based on the resolution of game.
''''
if pyautogui.pixel(369,580)[0] == 0:
click(369,580)
if pyautogui.pixel(457,580)[0] == 0:
click(457,580)
if pyautogui.pixel(538,580)[0] == 0:
click(538,580)
if pyautogui.pixel(638,580)[0] == 0:
click(638,580)