17 lines
350 B
Python
17 lines
350 B
Python
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)
|
|
|