Skip to content

2nty7vn/pywinauto

 
 

Repository files navigation

pywinauto

Join the chat at https://gitter.im/pywinauto/pywinauto

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.

Setup

or

  • run pip install pywinauto (pypiwin32 will be installed automatically)

Optional packages

  • Install Pillow (PIL fork) to be able to call CaptureAsImage() method.

Documentation

Example

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)

Supported controls

  • Native Windows controls (full support through Win32 API)
  • .NET Windows Forms (partial support through Win32 API, some basic controls only)

Continuous Integration / Coverage / Code Issues

  • Build status
  • codecov.io
  • Code Issues
  • Code Health

Downloads statistics

  • PyPI: Daily downloads Weekly downloads Monthly downloads
  • GitHub: GitHub downloads

Packages required for running unit tests

(Python 3.5 may require VC++ 2015 re-distributable package)

About

Windows GUI Automation with Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 60.1%
  • HTML 39.4%
  • Other 0.5%