forked from pywinauto/pywinauto.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (91 loc) · 5.67 KB
/
index.html
File metadata and controls
117 lines (91 loc) · 5.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>pywinauto - Windows GUI Automation</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/github-light.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1>pywinauto</h1>
<p>(c) Mark Mc Mahon</p>
<p class="view"><a href="https://github.com/pywinauto/pywinauto">View the Project on GitHub <small>pywinauto/pywinauto</small></a></p>
<ul>
<li><a href="https://github.com/pywinauto/pywinauto/zipball/master">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/pywinauto/pywinauto/tarball/master">Download <strong>TAR Ball</strong></a></li>
<li><a href="https://github.com/pywinauto/pywinauto">View On <strong>GitHub</strong></a></li>
</ul>
<br/><p class="view"><a href="https://github.com/pywinauto/pywinauto/releases/tag/0.5.3">pywinauto 0.5.3 released</a> (September,25)<br/>
<blockquote><p class="view">Better Unicode support in text methods<br/>
New method: SetTransparency<br/>
New window search criterion: found_index<br/></blockquote>
<a href="https://github.com/pywinauto/pywinauto/releases/download/0.5.3/pywinauto-0.5.3.zip">Download pywinauto-0.5.3.zip</a><br/></p>
<br/><p class="view"><a href="https://github.com/pywinauto/pywinauto/releases">All downloads</a></p><br/>
<ul>
<li><a href="http://pywinauto.github.io/docs/"><strong>Read the docs (by sphinx)</strong></a></li>
<li><a href="https://gist.github.com/vasily-v-ryabov"><strong>View examples</strong></a></li>
<li><a href="http://guiautomation.blogspot.com/"><strong>Automation blog</strong></a></li>
</ul>
<br/><br/><p class="view"><a href="https://github.com/pywinauto/SWAPY"><center-left>SWAPY<br/>(Object Inspector and Code Generator)</center-left></a></p>
</header>
<section>
<h1>
<a id="windows-gui-automation-with-python" class="anchor" href="#windows-gui-automation-with-python" aria-hidden="true"><span class="octicon octicon-link"></span></a>Windows GUI Automation with Python</h1>
<p><b>pywinauto</b> 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 also supports more complex actions.</p>
<p><table style="width:100%" border="0">
<tr>
<td colspan="2"><img src="walter_cat.jpg" height="55" width="55"/></td>
<td><i>[New <a href="https://github.com/pywinauto">team</a> icon]</i>
Thanks, <a href="https://www.behance.net/anna9111990"><u>Anna</u></a>, who painted the icon for the team, cat Walter.<br/>
Logo for the pywinauto library <a href="https://github.com/pywinauto/pywinauto/issues/76">is still wanted</a>.</td>
</tr>
</table></p>
<h3>
<a id="setup" class="anchor" href="#setup" aria-hidden="true"><span class="octicon octicon-link"></span></a>Demo example</h3>
<p><img src="https://raw.githubusercontent.com/pywinauto/pywinauto.github.io/master/notepad-simple2-ir.gif" alt="Notepad.exe automation example"></p>
<p>It is simple and the resulting scripts are very readable. How simple?</p>
<div class="highlight highlight-python"><pre>app.UntitledNotepad.MenuSelect(<span class="pl-s"><span class="pl-pds">"</span>Help->About Notepad<span class="pl-pds">"</span></span>)
app.AboutNotepad.OK.Click()
app.UntitledNotepad.Edit.TypeKeys (<span class="pl-s"><span class="pl-pds">"</span>pywinauto Works!<span class="pl-pds">"</span></span>, <span class="pl-smi">with_spaces</span> <span class="pl-k">=</span> <span class="pl-c1">True</span>)</pre></div>
<h3>
<a id="setup" class="anchor" href="#setup" aria-hidden="true"><span class="octicon octicon-link"></span></a>Setup</h3>
<ul>
<li>Just run <code>pip install pywinauto</code> (Py2.7+)
</ul>
or
<ul>
<li>Install <a href="http://sourceforge.net/projects/pywin32/files/pywin32/" target="_blank">pyWin32 extensions</a> (no need for Active Python except 3.4 64-bit)</li>
<li>Download <a href="https://github.com/pywinauto/pywinauto/releases/download/0.5.3/pywinauto-0.5.3.zip" target="_blank">latest version</a>
</li>
<li>Just unpack and run <code>python setup.py install</code>
</li>
</ul>
<h3>
<a id="supported-controls" class="anchor" href="#supported-controls" aria-hidden="true"><span class="octicon octicon-link"></span></a>Supported controls</h3>
<ul>
<li>Native Windows controls (full support through Win32 API)</li>
<li>.NET Windows Forms (partial support through Win32 API, some basic controls only)</li>
</ul>
<br/>
<h3>
<a id="swapy" class="anchor" href="#swapy" aria-hidden="true"><span class="octicon octicon-link"></span></a><img src="https://raw.githubusercontent.com/pywinauto/SWAPY/master/swapy_dog.png" height="40" width="40"/> SWAPY: Simple Windows Automation on Python</h3>
<p class="view">SWAPY is a pywinauto Inspector and Code generator</p>
<p class="view"><img src="https://raw.githubusercontent.com/pywinauto/pywinauto.github.io/master/steps.jpg" alt="SWAPY steps example"/></p>
</section>
<footer>
<p>This project is maintained by <a href="https://github.com/vasily-v-ryabov">vasily-v-ryabov</a></p>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>
</body>
</html>