Proper classes

This commit is contained in:
2020-11-08 15:37:01 +01:00
parent de91c6a9cc
commit 5b742c9b5d
7 changed files with 163 additions and 8 deletions

17
aoe_commands.py Normal file
View File

@@ -0,0 +1,17 @@
from pyautogui import *
import pyautogui
import keyboard
WAIT4CLICK = 0.04
def order_peasants(number):
print(f"Trying to order {number} peasants.")
select_town_center()
for i in range(number):
pyautogui.press('q')
time.sleep(WAIT4CLICK)
def select_town_center():
pyautogui.press('h')
time.sleep(WAIT4CLICK)