I want that my script will automate to remote desktop connection. My problem is how will i able to send text in a script in loggin in into the remote desktop connection in password area. Below is my script
from pywinauto.application import Application
import win32api
import pywinauto
from pywinauto import keyboard
from pywinauto import timings
import time
from pywinauto.keyboard import SendKeys
app = Application().Start(cmd_line=u'"C:\Windows\system32\mstsc.exe" ')
pywinauto.mouse.move(coords=(1025, 430))
pywinauto.mouse.click(button='left', coords=(1025, 430))
pywinauto.mouse.move(coords=(900, 280))
pywinauto.mouse.click(button='left', coords=(900,280))
time.sleep(1)
keyboard.SendKeys('test123')
#app.WindowsSecurity.Edit.type_keys("pywinauto Works!", with_spaces = True)
#notepad = app[u'Notepad++']
#notepad.Wait('ready')
#menu_item = notepad.MenuItem(u'File->New')
#menu_item.Click()
My code works well when executed the remote desktop connection will execute. Only the input text in password is my problem. Can someone help me figured this thing out?. Any help is muchly appreciated. TIA