python+pywinauto之PC端自动化一

所需软件安装:

1.下载 pywinauto

安装参考:

https://jingyan.baidu.com/article/414eccf6a1a3906b421f0a59.html

下载地址:

https://github.com/pywinauto/pywinauto

在将压缩包解压到:D:\ruanjian\python3.4\pywinauto-master

打开cmd,进入文件解压目录下,在cmd中运行:

python setup.py install

出现以上内容,即安装成功

2.安装SendKeys

下载SendKeys-0.3-cp27-none-win_amd64.whl

下载地址:https://pypi.org/project/SendKeys/0.3/#files

进入解压目录下面:

python3.4以上版本安装SendKeys失败,可以用https://blog.csdn.net/zhusongziye/article/details/79586927文章中说的PyUserInput替代;原因是SendKeys不支持python3.0以上的版本

PyUserInput下载地址:https://pypi.org/project/PyUserInput/#files

运行安装命令:python setup.py install

安装PyUserInput前需要安装pyHook安装 ,可查考博客https://blog.csdn.net/zhusongziye/article/details/79586927

https://www.cnblogs.com/yoyoketang/p/8043814.html

对应的安装路径:https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

 

猜你喜欢

转载自www.cnblogs.com/fengyiru6369/p/10197264.html