Python's pyautogui typewrite, hotkey and press functions don't seem to like openRA!

I enjoy messing around with python and I thought it would be fun to write some code to automate a skirmish! As stated in the title, pyautogui's library's keyboard functions don't seem to function in the game (they work in all other situations I've tried!)

Discussion about the game and its default mods.
Post Reply
justajolt
Posts: 1
Joined: Tue Jun 18, 2019 3:30 pm

Python's pyautogui typewrite, hotkey and press functions don't seem to like openRA!

Post by justajolt » Tue Jun 18, 2019 3:45 pm

Examples of code used include:
pyautogui.typewrite('q')
pyautogui.press('F1')

pyautogui.keyDown('f1')
time.sleep(0.1)
pyautogui.keyUp('f1')

Code examples function in other applications, as stated.

If anyone's tried this with python and could offer any pointers I'd be much obliged!

Post Reply