Questions tagged [pywinauto]

Windows GUI automation library written in Python

Project home

983 questions
4
votes
1 answer

Using PyWinAuto (or anything else) to interact with hidden icons on the taskbar

I am trying to find and click a hidden icon on the taskbar (shown by clicking the white triangle) in windows 7, using python. I've been trying to use pywinauto for this, but it doesn't seem to have the functionality to find and click one of these…
Richard
  • 494
  • 7
  • 18
4
votes
1 answer

pywinauto Wait and focus

I'm trying to automate a windows application using pywinauto. I can select the menu and open the "open file window". I need to wait for this window to appear and then set focus to that window and click some buttons. For some reason is not…
Tiago São José
  • 292
  • 3
  • 5
  • 12
4
votes
5 answers

Python pywinauto search windows with partial title

Is there any way to make pywinauto find a window just with a part of the title? This is my code: import pywinauto pwa_app = pywinauto.application.Application() w_handle = pywinauto.findwindows.find_windows(title=u'Minitab Professional 5.1 64bit -…
Tiago São José
  • 292
  • 3
  • 5
  • 12
4
votes
1 answer

Error saving Firefox webpage using pywinauto in Python

I just installed pywinauto-0.4.2 for Python 2.7.8 (on a Windows 7 64 bit machine). I was trying an example cited on pywinauto The source code for the program SaveFromFirefox.py (given in the above URL) is: from pywinauto.application import…
Arun
  • 2,222
  • 7
  • 43
  • 78
4
votes
2 answers

Why can't I write control identifiers to a file or assign them to a string or list

I'm using pywinauto to list the control identifiers of a particular application. I can do that just fine. However, I want to save those control identifiers to file, or better yet assign them to a string or list, but cannot write them or assign them…
suffa
  • 3,606
  • 8
  • 46
  • 66
4
votes
2 answers

How To Press

from pywinauto import application app = application.Application.start("C:\\Program Files\\Microsoft Office\\Office12\\EXCEL.exe") app.Microsoft_Excel.TypeKeys('%a') %a = Alt + a I Want Ctrl + a. is there a sign for this?
Dobz
  • 1,213
  • 1
  • 14
  • 36
3
votes
1 answer

PywinAuto - Excel Automation Can not click the button

I m making an Excel automation via pywinauto library. But there is a hard challange for me due to using Excel Oracle add-ins called Smartview. I need to click 'Private Connections' button, however i can't find any little info in…
mete BEDER
  • 41
  • 3
3
votes
0 answers

How can I find the subclasses of the app using pywinauto

Hi,everyone Nowadays I have been working on automating the Flygram app using python package such as pywinauto, pyautogui, however, I got stuck in the problem. When the script runs and finds the Flygram app, there are two instances of Flygram. The…
3
votes
1 answer

pywinauto emulate zoom with CTRL scroll does not work

I am trying to perform the zoom in/out command with pywinauto. I have two solutions in mind. The first one is emulating the CTRL + wheel command. I must say the window seems to zoom in, but the wheel_dist parameter does not effect the amount of…
Samuele Colombo
  • 685
  • 2
  • 6
  • 20
3
votes
1 answer

Is it possible to send data to a minimized window use pywinauto?

Several months ago, I wrote a Python GUI app that reads a file containing vehicle data. It then uses the sendkeys module to enter the data on a green house gas model app. I've converted the code to use pywinauto and use the application module in…
Scott
  • 41
  • 1
  • 6
3
votes
1 answer

How do I send keystrokes to a background window using Python & pywinauto without bringing that window into the foreground?

Tried this code: import win32gui import win32con windowID = win32gui.FindWindow(None, "testing.pdf - Adobe Acrobat Pro DC") #win32gui.SetForegroundWindow(windowID) win32gui.SendMessage(windowID, win32con.WM_KEYDOWN, win32con.VK_NEXT, 0) #VK_NEXT is…
English Rain
  • 311
  • 5
  • 13
3
votes
1 answer

Getting error while running a script which uses pywinauto

Whenever I import pywinauto I am getting below error: Traceback (most recent call last): File "D:\Python\Python38\lib\ctypes_init_.py", line 123, in WINFUNCTYPE return _win_functype_cache[(restype, argtypes, flags)] KeyError: (
Ravi
  • 39
  • 5
3
votes
1 answer

Is there a way to speed up pywinauto?

Here is a snippet of my code: ... my_program = os.path.join(this_dir, 'my_program.exe') app = Application(backend="uia").start("\"{}\" \"{}\"".format(my_program, arg)) app_explicit = app['My Program Window Name -…
user12546101
3
votes
1 answer

Confirm PuTTY host key prompt with pywinauto

I'm trying to automate PuTTY interface with pywinauto everything works except the part where i need to press y to accept the host keys when the alert window pops up. I'm using the PuTTY interface because it connects to an interactive interface not…
mn0o7
  • 65
  • 8
3
votes
3 answers

How to close a window using pywinauto which does not have "File->exit" in menu?

I have performed some tasks on an application and now I want to close it's window but I don't want to kill the process (ie. it should keep running in system tray). What's the correct way to do it in pywinauto? I am thinking about using pyautogui…
tzman
  • 174
  • 1
  • 1
  • 11