Current 0.5.x maintainance is lead by © Intel Corporation, 2015
pywinauto (c) Mark Mc Mahon and Contributors, 2006-2015
pywinauto is a set of python modules to automate the Microsoft Windows GUI. At it’s simplest it allows you to send mouse and keyboard actions to windows dialogs and controls, but It has support for more complex controls also.
Recommended usage: 64-bit Python is for 64-bit applications; 32-bit Python is for 32-bit ones.
- Install pyWin32 extensions (no need for Active Python)
- Download latest pywinauto release
- Just unpack and run
python setup.py install
or
- run
pip install pywinauto
(pypiwin32 will be installed automatically)
- Install Pillow (PIL fork) to be able to call
CaptureAsImage()
method.
- Introduction
- Table of contents
- Change Log / History
- HowTo's
- Code examples (gists) on gist.github.com
- Mailing list
It is simple and the resulting scripts are very readable. How simple?
app.UntitledNotepad.MenuSelect("Help->About Notepad")
app.AboutNotepad.OK.Click()
app.UntitledNotepad.Edit.TypeKeys ("pywinauto Works!", with_spaces = True)
- Native Windows controls (full support through Win32 API)
- .NET Windows Forms (partial support through Win32 API, some basic controls only)
(Python 3.5 may require VC++ 2015 re-distributable package)