使用Python/pyautogui控制另一台设备

Use Python/pyautogui to control another device

我目前正在使用 python 的 pyautogui 模块在我的计算机上自动输入。这是我目前拥有的一段代码:

def typeText(prompt):
    pyautogui.typewrite(prompt)
    pyautogui.press('enter')

typeText(prompt='Super secret words :D')

显然,这将模拟打字任务并在我的计算机上输入“超级密语:D”。但是我现在想做的是在我家里的 另一台 电脑上模拟这个程序。

我认为这在 pyautogui 中不可行,但使用远程计算机控制应用程序(如 teamviewer)然后从那里进行控制是可行的。