如何按< CTRL> [英] How To Press <CTRL>
本文介绍了如何按< 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
我想要 Ctrl + a .有这个迹象吗?
I Want Ctrl + a. is there a sign for this?
推荐答案
您必须使用 Control 键说明符- ^
,因此请尝试:
You must use Control key specifier - ^
, so try:
app.Microsoft_Excel.TypeKeys('^a')