Delphi: Simulate key press for automation
问题 I want to change text of an edit control of an external application. The application is written in Delphi. It has several forms. I started with Python libraries pywinauto + sendkeys to test the first form TLoginForm . It works perfectly. Here is the pseudo code: helper = pywinauto.application.Application() hwnd = pywinauto.findwindows.find_windows(class_name='TLoginForm')[0] window = helper.window_(handle=hwnd) ctrl = window[2] # the second control is the edit control I want to access ctrl