pyautogui - 有没有办法在Windows远程桌面会话中打字?

时间:2017-03-14 18:42:50

标签: python windows rdp pyautogui

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远程桌面会话中写入?提前致谢

1 个答案:

答案 0 :(得分:2)

模块键盘解决了问题

keyboard.write("asdaf") # works fine