import pyautogui
pyautogui.click(x=221, y=699, interval=1) # remote desktop in windows panel
pyautogui.click(x=279, y=375, interval=1) # click on search bar in remote desktop browser
pyautogui.typewrite("dadasfasaf") # it does nothing in remote desktop session
有没有办法让脚本完成工作?或其他具有功能的库在Windows远程桌面会话中写入?提前致谢
答案 0 :(得分:2)
模块键盘解决了问题
keyboard.write("asdaf") # works fine