How to press <CTRL>

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?

+4
source share
1 answer

You should use the Control key specifier - ^ , so try:

 app.Microsoft_Excel.TypeKeys('^a') 

You can get SendKeys mini-syntax documentation here or here .

+5
source

All Articles