Python Forum
Help ~ coding with pywinauto
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help ~ coding with pywinauto
#1
hi

i would like automate the windows task using pywinauto for my VPN

i am getting an issue to detect the element properly and access the element
some dont not have automation ID / name / title , some have ambigious (more than 1 element) with same name / titke
print_control_identifiers() will return me few hundred line of name but almost all of it not able to access thru clicks (or at least i try)

i got try get inspect.exe , spy++ , accessibilities tool but i am having difficulties to understand the path / useful information to access the item


hope to get some guidance / real example on how to make it work
i had go thru the documentation but it does not help

example code i try to make it click on the different server


import pyautogui
from pywinauto.application import Application

app = Application(backend="uia").connect(title='Proton VPN', visible_only=False)
app .child_window(auto_id="SearchInput", control_type="Edit").type_keys("UNITED STATES")
taking ProtonVpn as example
Reply


Messages In This Thread
Help ~ coding with pywinauto - by NickNHartley - Mar-12-2023, 08:12 AM
RE: Help ~ coding with pywinauto - by farshid - Apr-20-2023, 05:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MemoryError in pywinauto.findwindows.find_windows – Need Help! ktw3857 1 374 Apr-18-2024, 04:28 PM
Last Post: itegumo
  Pywinauto typing in the wrong field EGameiro 0 716 Jun-07-2023, 10:01 PM
Last Post: EGameiro
  pywinauto, anyone use it? thewolf 1 2,879 Mar-01-2021, 09:58 PM
Last Post: snippsat
  set_focus() in python pywinauto stearno 0 4,835 Nov-05-2020, 09:34 AM
Last Post: stearno
  Kindly asking for help with Pywinauto louloulou 0 2,051 Mar-05-2020, 06:55 PM
Last Post: louloulou
  Checking the presence of label using pywinauto module Malt 0 1,961 Jul-26-2019, 09:06 AM
Last Post: Malt
  [PyWinAuto] Please help me with Typekeys () mattroi261192 2 7,976 Apr-23-2019, 01:55 AM
Last Post: mattroi261192
  Not able to convert PYWINAUTO module automation in exe file Utkarsh29 0 2,480 Mar-19-2019, 09:39 PM
Last Post: Utkarsh29
  pywinauto problems vnc 3 8,213 Apr-13-2017, 11:21 AM
Last Post: vnc
  pywinauto timings timout error stonetr33 4 11,584 Dec-07-2016, 12:55 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020