<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pywinauto/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pywinauto/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pywinauto/bugs/</id><updated>2022-05-30T10:39:11.782000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#18 Clipboard is blocked by pywinauto</title><link href="https://sourceforge.net/p/pywinauto/bugs/18/?limit=25#2b86" rel="alternate"/><published>2022-05-30T10:39:11.782000Z</published><updated>2022-05-30T10:39:11.782000Z</updated><author><name>Hans Maurer</name><uri>https://sourceforge.net/u/daudag/</uri></author><id>https://sourceforge.neted6673d436790002b600e798c07e507de3bd4a5d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See enclosed attachment. (test script)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Clipboard is blocked by pywinauto</title><link href="https://sourceforge.net/p/pywinauto/bugs/18/" rel="alternate"/><published>2022-05-30T10:38:21.234000Z</published><updated>2022-05-30T10:38:21.234000Z</updated><author><name>Hans Maurer</name><uri>https://sourceforge.net/u/daudag/</uri></author><id>https://sourceforge.net9a0aa474354fdf7982f7ed7928189744037d030d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Using windows 10 and python 3.10.4 the clipboard from pyqt5 (5.15) is not possible if pywinauto is imported. Setting any data to clipboard is not possible. See enclosed example&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error importing application from pywinauto on Windows 10 x64</title><link href="https://sourceforge.net/p/pywinauto/bugs/17/" rel="alternate"/><published>2019-09-03T08:03:26.844000Z</published><updated>2019-09-03T08:03:26.844000Z</updated><author><name>Artur Pogosyan</name><uri>https://sourceforge.net/u/fantom82/</uri></author><id>https://sourceforge.netd669660114b831e229b47463a0748911d96a617e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If i importing like these:&lt;br/&gt;
from pywinauto import application&lt;br/&gt;
i've got following error:&lt;br/&gt;
PS Z:&amp;gt; python.exe D:\temp\policies\pywinauto.py&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File "D:\temp\policies\pywinauto.py", line 1, in &amp;lt;module&amp;gt;&lt;br/&gt;
    from pywinauto import application&lt;br/&gt;
  File "D:\temp\policies\pywinauto.py", line 1, in &amp;lt;module&amp;gt;&lt;br/&gt;
    from pywinauto import application&lt;br/&gt;
ImportError: cannot import name 'application' from 'pywinauto' (D:\temp\policies\pywinauto.py)&amp;lt;/module&amp;gt;&amp;lt;/module&amp;gt;&lt;/p&gt;
&lt;p&gt;if so:&lt;br/&gt;
from pywinauto.application import Application&lt;br/&gt;
then this:&lt;br/&gt;
PS Z:&amp;gt; python.exe D:\temp\policies\pywinauto.py&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File "D:\temp\policies\pywinauto.py", line 2, in &amp;lt;module&amp;gt;&lt;br/&gt;
    from pywinauto.application import Application&lt;br/&gt;
  File "D:\temp\policies\pywinauto.py", line 2, in &amp;lt;module&amp;gt;&lt;br/&gt;
    from pywinauto.application import Application&lt;br/&gt;
ModuleNotFoundError: No module named 'pywinauto.application'; 'pywinauto' is not a package&amp;lt;/module&amp;gt;&amp;lt;/module&amp;gt;&lt;/p&gt;
&lt;p&gt;and if importing so:&lt;br/&gt;
import pywinauto&lt;br/&gt;
then i got this:&lt;br/&gt;
PS Z:&amp;gt; python.exe D:\temp\policies\pywinauto.py&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File "D:\temp\policies\pywinauto.py", line 4, in &amp;lt;module&amp;gt;&lt;br/&gt;
    import pywinauto&lt;br/&gt;
  File "D:\temp\policies\pywinauto.py", line 10, in &amp;lt;module&amp;gt;&lt;br/&gt;
    pywinauto.application.Application().start(f"mmc.exe {mmc_loc}")&lt;br/&gt;
AttributeError: module 'pywinauto' has no attribute 'application'&amp;lt;/module&amp;gt;&amp;lt;/module&amp;gt;&lt;/p&gt;
&lt;p&gt;my code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;time&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pywinauto&lt;/span&gt;

&lt;span class="n"&gt;mmc_loc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"mmc_file_location"&lt;/span&gt;
&lt;span class="n"&gt;managed_group_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"managed group\path"&lt;/span&gt;
&lt;span class="n"&gt;groups&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;pywinauto&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;application&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Application&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"mmc.exe {mmc_loc}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pywinauto&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;application&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Application&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mmc.exe"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mmc_main_frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree_view&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;folder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_item&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{managed_group_path}{group}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;click&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mmc_main_frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;list_view&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Contents of site-packages folder:&lt;/p&gt;
&lt;p&gt;PS Z:&amp;gt; ls C:\python3_32\Lib\site-packages\&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;Каталог: C:\python3_32\Lib\site-packages
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Mode                LastWriteTime         Length Name&lt;br/&gt;
----                -------------         ------ ----&lt;br/&gt;
d-----       03.09.2019     10:23                adodbapi&lt;br/&gt;
d-----       03.09.2019     10:23                comtypes&lt;br/&gt;
d-----       03.09.2019     10:23                comtypes-1.1.7-py3.7.egg-info&lt;br/&gt;
d-----       03.09.2019     10:23                isapi&lt;br/&gt;
d-----       03.09.2019     10:22                pip&lt;br/&gt;
d-----       03.09.2019     10:22                pip-19.2.3.dist-info&lt;br/&gt;
d-----       03.09.2019     10:18                pkg_resources&lt;br/&gt;
d-----       03.09.2019     10:23                pythonwin&lt;br/&gt;
d-----       03.09.2019     10:23                pywin32-224.dist-info&lt;br/&gt;
d-----       03.09.2019     10:23                pywin32_system32&lt;br/&gt;
d-----       03.09.2019     10:23                pywinauto&lt;br/&gt;
d-----       03.09.2019     10:23                pywinauto-0.6.7.dist-info&lt;br/&gt;
d-----       03.09.2019     10:18                setuptools&lt;br/&gt;
d-----       03.09.2019     10:18                setuptools-40.8.0.dist-info&lt;br/&gt;
d-----       03.09.2019     10:23                win32&lt;br/&gt;
d-----       03.09.2019     10:23                win32com&lt;br/&gt;
d-----       03.09.2019     10:23                win32comext&lt;br/&gt;
d-----       03.09.2019     10:23                &lt;strong&gt;pycache&lt;/strong&gt;&lt;br/&gt;
-a----       03.09.2019     10:18            126 easy_install.py&lt;br/&gt;
-a----       03.09.2019     10:22            138 pythoncom.py&lt;br/&gt;
-a----       03.09.2019     10:22        2650084 PyWin32.chm&lt;br/&gt;
-a----       03.09.2019     10:22            395 pywin32.pth&lt;br/&gt;
-a----       03.09.2019     10:22              5 pywin32.version.txt&lt;br/&gt;
-a----       08.07.2019     19:24            121 README.txt&lt;/p&gt;
&lt;p&gt;Windows 10 x64&lt;br/&gt;
Python version 3.7.4 x86&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>In app.A.ChildWindow(parent = handle)  parent is overwritten</title><link href="https://sourceforge.net/p/pywinauto/bugs/16/" rel="alternate"/><published>2013-01-07T22:13:50Z</published><updated>2013-01-07T22:13:50Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net71cc3e380ba1a097d00b35615ae2e935466222eb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For example I have the code:&lt;/p&gt;
&lt;p&gt;app = application.Application()&lt;br /&gt;
app.start_(r"mmc.exe ServerManager.msc", timeout=10)&lt;/p&gt;
&lt;p&gt;time.sleep(10)&lt;/p&gt;
&lt;p&gt;app.connect_(title = "Server Manager")&lt;/p&gt;
&lt;p&gt;a = app.ServerManager.ChildWindow(title_re = ".+Multiple CAs can be.+")&lt;/p&gt;
&lt;p&gt;#Now I need to find particular child of `a`&lt;br /&gt;
b = app.ServerManager.ChildWindow(parent = a.Parent().Parent().handle, title = "Add Role Services")&lt;/p&gt;
&lt;p&gt;In this case parent handle that I'm passing will be overwritten with the app's handle.&lt;/p&gt;
&lt;p&gt;To fix this just modify the following code:&lt;br /&gt;
# application.py:&lt;/p&gt;
&lt;p&gt;line 560: ctrl_criteria["parent"] = dialog.handle&lt;/p&gt;
&lt;p&gt;to &lt;/p&gt;
&lt;p&gt;560:        try:&lt;br /&gt;
561:            ctrl_criteria["parent"]&lt;br /&gt;
562:        except KeyError:&lt;br /&gt;
563:            ctrl_criteria["parent"] = dialog.handle&lt;/p&gt;
&lt;p&gt;This way, if the parent is passed, it will not be overwritten&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TypeKeys bug with DOS/CMD window</title><link href="https://sourceforge.net/p/pywinauto/bugs/15/" rel="alternate"/><published>2011-08-06T18:22:57Z</published><updated>2011-08-06T18:22:57Z</updated><author><name>Michael Hipp</name><uri>https://sourceforge.net/u/mhipp/</uri></author><id>https://sourceforge.netb699efe4930225ec7bf58d46ffee021efd337a96</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There seems to be a strange bug when sending keystrokes to DOS programs  (e.g. edit.com) running in a CMD.EXE window. It will only send "special" keys and keys with a modifer. For example {ENTER} works fine as does {F2} but the alphabetic and numeric keys don't work unless shift (+) is applied. Everything works fine when sending keys to a GUI app like Notepad.&lt;/p&gt;
&lt;p&gt;this: win.TypeKeys("+MI+C+H")    # results in 'MCH'&lt;br /&gt;
I tried importing directly:&lt;br /&gt;
from pywinauto.SendKeysCtypes import SendKeys&lt;br /&gt;
SendKeys("+MI+C+H")   # This still gives 'MCH'&lt;/p&gt;
&lt;p&gt;The latest version of SendKeys v0.3 does not have this bug. I downloaded the Python 2.7 version here: &lt;a href="https://bitbucket.org/orutherfurd/sendkeys/issue/5/windows-installer-for-python-27" rel="nofollow"&gt;https://bitbucket.org/orutherfurd/sendkeys/issue/5/windows-installer-for-python-27&lt;/a&gt; (see last comment by Charles Duffy).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pip installs old version</title><link href="https://sourceforge.net/p/pywinauto/bugs/14/" rel="alternate"/><published>2011-01-12T20:32:55Z</published><updated>2011-01-12T20:32:55Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net20a26eba8c8c9e89f0fa7758509b0a90df2ebd14</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when I run "pip install pywinauto" it installs version 0.1.3&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>assertion error</title><link href="https://sourceforge.net/p/pywinauto/bugs/13/" rel="alternate"/><published>2010-11-04T05:38:41Z</published><updated>2010-11-04T05:38:41Z</updated><author><name>Raymond Tay</name><uri>https://sourceforge.net/u/tayboonl/</uri></author><id>https://sourceforge.net88fdfbfe479e4141a09181cc4c3d59334085c638</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When attempting to install the s/w via IronPython interpreters 2.6.1 for .NET 2.0/.NET 4.0 i saw the following error&lt;/p&gt;
&lt;p&gt;C:\Users\tayr\Downloads\pywinauto-0.4.0\pywinauto-0.4.0&amp;gt;"c:\Program Files (x86)\IronPython 2.6 for .NET 2.0\ipy.exe" ./setup.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "./setup.py", line 50, in &amp;lt;module&amp;gt;&lt;br /&gt;
File "C:\Users\tayr\Downloads\pywinauto-0.4.0\pywinauto-0.4.0\pywinauto\__init__.py", line 28, in &amp;lt;module&amp;gt;&lt;br /&gt;
File "C:\Users\tayr\Downloads\pywinauto-0.4.0\pywinauto-0.4.0\pywinauto\findwindows.py", line 32, in &amp;lt;module&amp;gt;&lt;br /&gt;
File "C:\Users\tayr\Downloads\pywinauto-0.4.0\pywinauto-0.4.0\pywinauto\win32structures.py", line 401, in &amp;lt;module&amp;gt;&lt;br /&gt;
AssertionError: 62&lt;/p&gt;
&lt;p&gt;This doesn't occur when i used the Active Python 2.6.6 or the official interpter from python.org&lt;/p&gt;
&lt;p&gt;Probably due to different VS compilers used to generate these different variants of the Python interpreter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>a patch for empty clipboard </title><link href="https://sourceforge.net/p/pywinauto/bugs/12/" rel="alternate"/><published>2010-01-23T15:28:02Z</published><updated>2010-01-23T15:28:02Z</updated><author><name>tocer</name><uri>https://sourceforge.net/u/tocer/</uri></author><id>https://sourceforge.netc74f4ba353b2b0297ad0368934dbff0ade529143</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;for version 0.3.9&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Misspelling in application.py line 929</title><link href="https://sourceforge.net/p/pywinauto/bugs/11/" rel="alternate"/><published>2009-05-18T11:56:32Z</published><updated>2009-05-18T11:56:32Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netce94c265d1c113dd86532da94a075ce4bddd91ac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Found another bug in the same file (application.py):&lt;/p&gt;
&lt;p&gt;false instead of False is used there. &lt;/p&gt;
&lt;p&gt;File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\application.py",&lt;br /&gt;
line 929, in start_&lt;br /&gt;
WaitUntil(timeout, retry_interval, AppIdle)&lt;br /&gt;
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\timings.py", line&lt;br /&gt;
274, in WaitUntil&lt;br /&gt;
func_val = func(*args)&lt;br /&gt;
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\application.py",&lt;br /&gt;
line 923, in AppIdle&lt;br /&gt;
return false&lt;br /&gt;
NameError: global name 'false' is not defined&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Misspelling in application.py line 929</title><link href="https://sourceforge.net/p/pywinauto/bugs/10/" rel="alternate"/><published>2009-05-18T09:12:31Z</published><updated>2009-05-18T09:12:31Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netfa91c0811783b68a906cf786b6ac70ae8d211b47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Found another bug in the same file (application.py):&lt;/p&gt;
&lt;p&gt;false instead of False is used there. &lt;/p&gt;
&lt;p&gt;File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\application.py",&lt;br /&gt;
line 929, in start_&lt;br /&gt;
WaitUntil(timeout, retry_interval, AppIdle)&lt;br /&gt;
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\timings.py", line&lt;br /&gt;
274, in WaitUntil&lt;br /&gt;
func_val = func(*args)&lt;br /&gt;
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\application.py",&lt;br /&gt;
line 923, in AppIdle&lt;br /&gt;
return false&lt;br /&gt;
NameError: global name 'false' is not defined&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>