forked from pywinauto/pywinauto.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·221 lines (193 loc) · 9.52 KB
/
index.html
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml">
<head>
<title>Pywinauto - pywinauto</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="/">
<meta name="author" content="Mark Mc Mahon. This project is maintained by <a href=https://github.com/vasily-v-ryabov>vasily-v-ryabov</a>" />
<meta name="description" content="Windows GUI automation with python" />
<meta property="og:site_name" content="pywinauto" />
<meta property="og:type" content="article"/>
<meta property="og:title" content="Pywinauto"/>
<meta property="og:url" content="/"/>
<meta property="og:description" content="Windows GUI automation with python" />
<!-- Bootstrap -->
<link rel="stylesheet" href="/theme/css/bootstrap.flatly.min.css" type="text/css"/>
<link href="/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="/theme/css/pygments/native.css" rel="stylesheet">
<link rel="stylesheet" href="/theme/css/style.css" type="text/css"/>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand">
pywinauto </a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="/pages/swapy-is-a-pywinauto-inspector-and-code-generator.html">
SWAPY
</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div> <!-- /.navbar -->
<!-- Banner -->
<!-- End Banner -->
<div class="container">
<div class="row">
<div class="col-sm-9">
<section id="content" class="body">
<h1 class="entry-title">Pywinauto</h1>
<div class="entry-content">
<p><strong>pywinauto</strong> is a set of python modules to automate the Microsoft Windows GUI. At its simplest it allows you to send mouse and keyboard actions to windows dialogs and controls, but it also supports more complex actions.</p>
<h4><a href="https://github.com/pywinauto/pywinauto/releases/tag/0.5.4">pywinauto 0.5.4 released</a> (October, 30, 2015)</h4>
<blockquote>
<p>Fix bugs and inconsistencies<br />
Partial MFC Menu Bar support<br />
Python 3.5 is supported </p>
</blockquote>
<p><a href="https://github.com/pywinauto/pywinauto/releases/download/0.5.4/pywinauto-0.5.4.zip">Download pywinauto-0.5.4.zip</a><br />
<a href="docs/index.html">Documentation for the release 0.5.4</a></p>
<p><img alt="logo" src="images/walter_cat.jpg" /> <em>New <a href="https://github.com/pywinauto">team</a> icon</em>. Thanks, <a href="https://www.behance.net/anna9111990"><em>Anna</em></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>.</p>
<h2><a href="#example"></a>Example</h2>
<p>It is simple and the resulting scripts are very readable. How simple?</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6
7
8
9</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">pywinauto.application</span> <span class="kn">import</span> <span class="n">Application</span>
<span class="c1"># Run a target application</span>
<span class="n">app</span> <span class="o">=</span> <span class="n">Application</span><span class="p">()</span><span class="o">.</span><span class="n">start</span><span class="p">(</span><span class="s2">"notepad.exe"</span><span class="p">)</span>
<span class="c1"># Select a menu item</span>
<span class="n">app</span><span class="o">.</span><span class="n">UntitledNotepad</span><span class="o">.</span><span class="n">menu_select</span><span class="p">(</span><span class="s2">"Help->About Notepad"</span><span class="p">)</span>
<span class="c1"># Click on a button</span>
<span class="n">app</span><span class="o">.</span><span class="n">AboutNotepad</span><span class="o">.</span><span class="n">OK</span><span class="o">.</span><span class="n">click</span><span class="p">()</span>
<span class="c1"># Type a text string</span>
<span class="n">app</span><span class="o">.</span><span class="n">UntitledNotepad</span><span class="o">.</span><span class="n">Edit</span><span class="o">.</span><span class="n">type_keys</span><span class="p">(</span><span class="s2">"pywinauto Works!"</span><span class="p">,</span> <span class="n">with_spaces</span> <span class="o">=</span> <span class="bp">True</span><span class="p">)</span>
</pre></div>
</td></tr></table>
<h2><a href="#setup"></a>Setup</h2>
<ul>
<li>Just run <code>pip install pywinauto</code> (Py2.7+)</li>
</ul>
<p>or</p>
<ul>
<li>Install <a href="http://sourceforge.net/projects/pywin32/files/pywin32/">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.4/pywinauto-0.5.4.zip">the latest version</a></li>
<li>Just unpack and run <code>python setup.py install</code></li>
</ul>
<h2><a href="#supported-controls"></a>Supported controls</h2>
<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>
<hr />
<h2><a href="#demo"></a>Demo</h2>
<p>Here is a short screencast with Pywinauto in action:</p>
<p><img alt="Notepad.exe automation example" src="images/notepad-simple2-ir.gif" /></p>
</div>
</section>
</div>
<div class="col-sm-3" id="sidebar">
<aside>
<section class="well well-sm">
<ul class="list-group list-group-flush">
<li class="list-group-item"><h4><i class="fa fa-github fa-lg"></i><span class="icon-label">GitHub Repos</span></h4>
<div id="gh_repos">
<p class="list-group-item">Status updating...</p>
</div>
<a href="https://github.com/pywinauto">@pywinauto</a> on GitHub
</li>
<li class="list-group-item"><h4><i class="fa fa-external-link-square fa-lg"></i><span class="icon-label">Links</span></h4>
<ul class="list-group" id="links">
<li class="list-group-item">
<a href="https://pywinauto.readthedocs.io/en/latest/" target="_blank">
Documentation
</a>
</li>
<li class="list-group-item">
<a href="https://github.com/pywinauto/pywinauto/releases/" target="_blank">
Releases
</a>
</li>
<li class="list-group-item">
<a href="https://github.com/pywinauto/pywinauto/zipball/master/" target="_blank">
Pywinauto ZIP File
</a>
</li>
<li class="list-group-item">
<a href="https://github.com/pywinauto/pywinauto/tarball/master/" target="_blank">
Pywinauto TAR Ball
</a>
</li>
<li class="list-group-item">
<a href="https://guiautomation.blogspot.com/" target="_blank">
Automation blog
</a>
</li>
</ul>
</li>
</ul>
</section>
</aside>
</div>
</div>
</div>
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-xs-10">© Mark Mc Mahon. This project is maintained by <a href=https://github.com/vasily-v-ryabov>vasily-v-ryabov</a>
· Powered by <a href="https://github.com/getpelican/pelican-themes/tree/master/pelican-bootstrap3" target="_blank">pelican-bootstrap3</a>,
<a href="http://docs.getpelican.com/" target="_blank">Pelican</a>,
<a href="http://getbootstrap.com" target="_blank">Bootstrap</a> </div>
<div class="col-xs-2"><p class="pull-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div>
</div>
</div>
</footer>
<script src="/theme/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/theme/js/bootstrap.min.js"></script>
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
<script src="/theme/js/respond.min.js"></script>
<!-- GitHub JS -->
<script type="text/javascript">
$(document).ready(function () {
if (!window.jXHR) {
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/theme/js/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'pywinauto',
count: 5,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/theme/js/github.js" type="text/javascript"></script>
<!-- End GitHub JS Code -->
</body>
</html>