Search code examples
pythonwindowsrdppyautogui

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

is there a way to make script's job done? or other library with funcionality to write inside Windows remote desktop session? Thanks in advance


Solution

  • module keyboard solves the problem

    keyboard.write("asdaf") # works fine