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

Michael Jaros
  • 4,586
  • 1
  • 22
  • 39
Dobz
  • 1,213
  • 1
  • 14
  • 36

2 Answers2

6

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

app.Microsoft_Excel.TypeKeys('^a')

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

ecoe
  • 4,994
  • 7
  • 54
  • 72
Rostyslav Dzinko
  • 39,424
  • 5
  • 49
  • 62
0

U can use: send_keys('^a')