Windows GUI automation library written in Python
Questions tagged [pywinauto]
983 questions
4
votes
1 answer
To extract the title name using pywinauto
I recently started using pywinauto. I am trying to fetch the title of the pop-up window.
FYI Application background is UIA.
In the above picture, the title of the pop-up window is "Open Media". Is there any way to extract/read this title using…

Nawaa
- 87
- 2
- 10
4
votes
1 answer
Cannot import from pywinauto: ImportError: DLL load failed while importing win32ui: A dynamic link library (DLL) initialization routine failed
After installing pywinauto I'm trying to run that simple code:
from pywinauto import Application
filename = 'notepad.exe'
app = aplication.Application().start(filename)
And get the error:
Traceback (most recent call last):
File…

Edu V Magadan
- 69
- 1
- 6
4
votes
1 answer
pywinauto: get URL from MS Edge Canary Address Bar
I don't have any issues grabbing the URL address from a Chrome Browser's address bar using pywinauto. I "should" be able to grab the URL from a Microsoft Edge Canary browser in the same fashion. However, there appears to be something preventing…

MKANET
- 573
- 6
- 27
- 51
4
votes
1 answer
How to getting around pywinauto's ElementAmbiguousError: There are 2 elements that match the criteria error
I am trying to automate running Rufus using python and pywinauto.
So far I have been able to run the executable and modify the controls on Rufus' main screen.
After the code I have written clicks the "START" button, Rufus displays a popup.
This…

Cyberclops
- 311
- 2
- 17
4
votes
0 answers
Python pywinauto Process finished with exit code -1073740771 (0xC000041D)
Python 3.7.1 //
Tk version 8.6 //
pywinauto-0.6.8 //
PyCharm Community Edition 2020.1 x64
The objective is to have the button send keys to the window in the background.
Issue appears due to the presence of pywinauto.
If inactive:
from tkinter…

AMC
- 41
- 2
4
votes
1 answer
How to click using pywinauto
I would like to use pywinauto to control an image processing software.
First, I need to click a specific area (which is used for image dragging) to pop up a windows for path input. See the first figure.
Then, I need to input a path and click the…

Chan
- 3,605
- 9
- 29
- 60
4
votes
2 answers
pywin32 / pywinauto not working properly in remote desktop when it is minimized
I have a Jenkins pipeline that executes a program in a remote server that uses pywin to manipulate an application for functional tests.
My application works great while I have the remote desktop oppened but when I close the remote desktop and run it…

Ana Franco
- 1,611
- 3
- 24
- 43
4
votes
0 answers
Global hotkeys for specific application with python3 on windows
I'm writing a script to control a specific application with hotkeys. I divided my task into three tasks:
monitor for global keys,
match pressed global hotkeys to keys to be sent,
send keys to specific application.
Let's say i want to send Ctrl+A…

Sona
- 41
- 1
4
votes
1 answer
Pywinauto - How to wait on UIAWrapper windows
I'm trying to wait on a specific window (that I found using the children method from the top window) but it seems that the UIAWrapper doesn't have the wait method.
What can be done to use wait on this window? or maybe convert the UIAWrapper object…

Drxxd
- 1,860
- 14
- 34
4
votes
1 answer
Getting window's properties using pywinauto
Is there a way to get window's properties like: title and control_type using pywinauto?
Because it seems that you can search windows by them, but there's no window attribute that points to these properties.

Drxxd
- 1,860
- 14
- 34
4
votes
1 answer
How do you control a right click spawned pop up menu in pywinauto?
I'm currently trying to learn the ins and outs of pywinauto for python 2.7 however I'm having a hard time with a few concepts.
I know how to right click something and get a menu to pop up but after that how do I select or click anything on the…

Elka
- 63
- 7
4
votes
2 answers
pywinauto: How to select this dialog? Which spying tool to use? What information do I need on it?
How can I write "hello" on the first field of the 7-zip "Add to Archive" dialog?
I managed so far to trigger the 7-zip (windows 64x) "Add to Archive" dialog using this
from pywinauto.application import Application
app =…

J. Does
- 785
- 3
- 10
- 23
4
votes
1 answer
print_control_identifiers() error in pywinauto
I am using pyautowin in WIN10, and I want to open a secure app to generate passcode. But after i find a window of app in script, the print_control_identifiers() function pops error, I'm not sure where goes wrong. Error Window? No controls in app?…

Harjeb
- 105
- 2
- 9
4
votes
1 answer
Find children elements filter by type
I'd like to find children elements in a window but only of a certain type /
class.
I use that code:
def get_visible_buttons(window):
children = window.Children()
return [
child for child in children
if…

Sebastien RAGONS
- 53
- 1
- 7
4
votes
1 answer
pywinauto 32-bit userwarning
I am trying to use pywinauto to automate TomCat to start and stop every time I update the class files. However, when I try and run it it gives me the following warning:
UserWarning: 32-bit application should be automated using 32-bit Python (you…

DanZoe
- 111
- 1
- 3
- 15