Proper classes
This commit is contained in:
17
aoe_commands.py
Normal file
17
aoe_commands.py
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user