Questions tagged [pywinauto]

Windows GUI automation library written in Python

Project home

983 questions
3
votes
2 answers

Send keyboard/mouse inputs with python macro keep target window background

I'm trying to make a macro program with python 3.7 on Windows10 I want to send keyboard/mouse inputs to any specific target window while the target window keep inactivated(minimized or background) pyautogui seems to not be able to do that (If I miss…
kroos8
  • 63
  • 1
  • 7
3
votes
0 answers

How do I open exe file with python that is dependent on AVI files?

I'm trying to open Adv5KTCP.exe (path shown in code) but this exe actually opens three more avi.files as shown in image below. This causes the error. I've tried os, subprocess & pywinauto to call but to no avail. I've also tried adding the files…
Sin Han Jinn
  • 574
  • 3
  • 18
3
votes
0 answers

Running Pywinauto Automated Test While PC is Locked

I am looking at automation tools and have found pywinauto easy to use and therefore have decided to seek using it as my framework. I have one issue that I've attempted to work through but possibly just need help or a clear answer at this point. I…
jkwhite
  • 320
  • 2
  • 10
3
votes
1 answer

Returning all desktop windows with PyWinAuto

I am trying to return all windows from my machine using PyAutoWin. The ultimate goal is to later narrow down this list to a subset of windows to automate (resize and perform scraping actions) using a mixture of methods. However I am failing at the…
fisheatshark
  • 145
  • 1
  • 5
3
votes
1 answer

How I can get the current focused element of desktop application

I want to automate my test case for my desktop application(windows application) where I need to get/fetch the currently focused element. Can someone please help me or guide in this regard? I tried with GetFocus method of pywinauto which just…
3
votes
0 answers

pywinauto - ImportError: DLL load failed for win32ui

I frequently get this error (9/10 times) when running my scripts that use pywinauto File "C:\Anaconda3\envs\python3.4.5\lib\site-packages\pywinauto\base_wrapper.py", line 45, in import win32ui File "C:\Program Files\JetBrains\PyCharm…
kronosjt
  • 703
  • 4
  • 10
  • 24
3
votes
1 answer

GUI automation using pywinauto python. Attribute error , menu_select() missing error in uaicontrols.py

I'm tring to automate a windows gui mouse click of a check box in properties of a printer. I get to this by starting print management mmc, right clicking on "G23XnQ2E (local)" from "Print Servers" drop down in the left pane and selecting…
Trilok M
  • 681
  • 7
  • 21
3
votes
2 answers

pywinauto capture_as_image adds unwanted borders

I am using pywinauto to take a screenshot of a specific window. Here is the code I use to take a capture of notepad ("Bloc-notes" in french) : from pywinauto import Application app = Application().connect(title_re=".*Bloc-notes") hwin =…
Simpom
  • 938
  • 1
  • 6
  • 23
3
votes
2 answers

How to click button in dialog box using PyWinAuto

I have an batch file that I execute that opens a program. A dialog box then appears which I type into it the username and password credentials The I print the control identifiers and it lists; SunAwtDialog - 'Login' (L528, T242, R853,…
mp252
  • 453
  • 1
  • 6
  • 18
3
votes
1 answer

Sending ALT-codes using pywinauto

I find no way to send an ALT-code to an application, for example Notepad from pywinauto import application from pywinauto.keyboard import SendKeys, KeySequenceError app = application.Application() app.start("Notepad.exe") SendKeys("%(234)") This…
Dekay
  • 31
  • 2
3
votes
0 answers

How to click on TreeItem checkbox while Desktop is locked or RDP session is closed

Hello I have following information about my UI and TreeView item in on of the windows: >>> x.dump_tree() Control Identifiers: TreeView - '' (L662, T453, R1022, B651) ['', 'TreeView'] child_window(auto_id="1000", control_type="Tree") | |…
3
votes
1 answer

Importing pywinauto (or comtypes) clobbers existing COM object

Creating / getting a COM object using win32com.client.GetActiveObject and then import pywintypes results in an AttributeError upon each call to the original COM object. Code to reproduce import win32com.client catia_com =…
hansonap
  • 461
  • 1
  • 4
  • 16
3
votes
1 answer

Cannot change content of an Edit control

I am using pywinauto to open a file in some software. My code is supposed to open a specific file using the Open dialog: import pywinauto from pywinauto.application import Application app = Application(backend="uia").start(cmd_line="C:\\Program…
Aric
  • 319
  • 7
  • 27
3
votes
1 answer

Remote desktop connection using pywinauto

I want that my script will automate to remote desktop connection. My problem is how will i able to send text in a script in loggin in into the remote desktop connection in password area. Below is my script from pywinauto.application import…
Software Developer
  • 197
  • 2
  • 7
  • 22
3
votes
1 answer

I am unable to successfully import pywinauto into python 3.6.4

I began with a pip install of "pywinauto" and attempted to import it, and I initially I got a message saying that the module win32api was missing. I attempted a pip install of that module but received a message saying that no satisfactory version…
sasha59
  • 51
  • 1
  • 4