pyautogui - 有没有办法在 windows 远程桌面会话中打字?
pyautogui - is there a way to typewrite in windows remote desktop session?
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 远程桌面会话中写入功能的库?提前致谢
模块键盘解决问题
keyboard.write("asdaf") # works fine
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 远程桌面会话中写入功能的库?提前致谢
模块键盘解决问题
keyboard.write("asdaf") # works fine