from pywinauto import application app = application.Application.start("C:\\Program Files\\Microsoft Office\\Office12\\EXCEL.exe") app.Microsoft_Excel.TypeKeys('%a')
% a = Alt + a
I want Ctrl + a . Is there a sign for this?
You should use the Control key specifier - ^ , so try:
^
app.Microsoft_Excel.TypeKeys('^a')
You can get SendKeys mini-syntax documentation here or here .