我正在尝试在构建在Azure云上的windows中使用pyautogui自动执行任务。但是当我断开远程连接时,pyautogui进程无法工作。我的代码↓ import time
import pyautogui as pg
pg.hotkey('alt', 'tab') #This line and
for i in range(10):
pg.press(str(i)) #The processing of this line will not be executed.
time.sleep(1) 有没有办法在没有远程连接