How To Press <CTRL>

excel, python, python-2.7, pywinauto

Solution

You must use Control key specifier - `^`, so try:

app.Microsoft_Excel.TypeKeys('^a')

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

Problem

``` 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?

Original source