Autoscout

This commit is contained in:
2020-11-08 21:04:57 +01:00
parent 5b742c9b5d
commit 49feb24967
3 changed files with 164 additions and 4 deletions

View File

@@ -14,4 +14,11 @@ def order_peasants(number):
def select_town_center():
pyautogui.press('h')
time.sleep(WAIT4CLICK)
def follow_points(points):
pyautogui.keyDown('shift')
for x,y in points:
pyautogui.rightClick(x,y)
time.sleep(WAIT4CLICK)
pyautogui.keyUp('shift')
pyautogui.move(-500, -500) # reset mouse