Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 05 12:29
    lld2001 closed #1246
  • Oct 05 12:28
    lld2001 commented #1246
  • Oct 03 11:18
    ETreskovskis commented #445
  • Sep 30 09:55
    codecov[bot] commented #1232
  • Sep 30 09:43
    codecov[bot] commented #1232
  • Sep 30 09:23
    codecov[bot] commented #1232
  • Sep 30 09:19
    codecov[bot] commented #1232
  • Sep 30 09:19
    codecov[bot] commented #1232
  • Sep 30 09:18
    codecov[bot] commented #1232
  • Sep 30 09:17
    codecov[bot] commented #1232
  • Sep 30 07:15
    codecov[bot] commented #1232
  • Sep 30 07:15
    codecov[bot] commented #1232
  • Sep 30 07:14
    junkmd synchronize #1232
  • Sep 30 01:55
    lld2001 commented #1246
  • Sep 29 22:55
    lld2001 commented #1246
  • Sep 29 22:54
    lld2001 opened #1246
  • Sep 29 15:56
    codecov[bot] commented #1232
  • Sep 29 15:37
    codecov[bot] commented #1232
  • Sep 29 15:17
    codecov[bot] commented #1232
  • Sep 29 15:00
    codecov[bot] commented #1232
Fabien Lenoir
@flenoir
its on trzcheckbox
i have tried click, check and ckickinput methods
clickinput
LuffyKing
@LuffyKing
Try double click
Fabien Lenoir
@flenoir
ok i will
LuffyKing
@LuffyKing
I think the wait ready might be the issue
It's difficult without having the program
To try to work with
The second wait ready might not see the ready on the program
Either that or double click
Fabien Lenoir
@flenoir
yes this is a professional software for video encoding

i change the code to :smile: from pywinauto.application import Application

app = Application().Start(cmd_line=u'"C:\RhozetDBInstaller\RhozetDB_102_32938.exe" ')
tpooltemplate = app.TPoolTemplate
tpooltemplate.Wait('ready')
tbutton = tpooltemplate[u'&Next >']
tbutton.Click()
tpooltemplate2 = app.TPoolTemplate
trzcheckbox = tpooltemplate2.TRzCheckBox
trzcheckbox.DoubleClick()
tbutton2 = tpooltemplate2.Button3
tbutton2.Click()
tpooltemplate3 = app.TPoolTemplate
tedit = tpooltemplate3[u'3']
tedit.ClickInput(where='WFSDB')

app.Kill_()

but still checkbox can be ticked, ...strange
Fabien Lenoir
@flenoir
finnaly got it workin
trzcheckbox = tpooltemplate2[u'I accept the terms of the End User LicenseButton']
thanks anyway
LuffyKing
@LuffyKing
Remove ready for tooltemplate2 and add a sleep for 5 secs instead
Ya just guessing😂😂
Fabien Lenoir
@flenoir
i also have to fill some data in text field, do you think the folowwing code e will work ? tedit.ClickInput(where='WFSDB')
LuffyKing
@LuffyKing
Typekeys
Allows u to input data
Eg
tedit.TypeKeys("input text")
@flenoir
Madhukar S Holla
@madhukar01
Hey all!
Is there any support by PyWin for Windows applications that have HTML embeddd UI
I've been trying to workaround coded ui but it's really terrible.
Vasily Ryabov
@vasily-v-ryabov
Hi @madhukar01 it depends on the engine used to render HTML embedded UI. To check if it's suitable for pywinauto, use Inspect.exe. The link to download can be found in the Getting Started Guide.
Sorry for delayed replies on the issues. A hot week.
Sripad Sahu
@sripad96_gitlab
hey,
if i use thi line i am getting error
dlg.Project.print_control_identifiers()
error is : raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'title_re': '.* Pix4Ddiscovey Non - Commercial', 'backend': 'uia', 'process': 2944}
any suggestions???
i am working on a project to automate a thirdparty app made on qt
but unable to use : dlg.File_tab.click(); dlg.child_window(title='Open', control_type='MenuItem', found_index=0).invoke(); etc like commands
any suggestions on where i might be going wrong or how to automate a 3rd party app made from QT using pywinauto
Vasily Ryabov
@vasily-v-ryabov
Hi @sripad96_gitlab for the first error it's not clear how dlg was defined. This is important, because it looks like dlg specification produced this error, not dlg.Project. For dlg.Project it would be something like ElementNotFoundError: {'best_match': 'Project', 'backend': 'uia', 'process': 2944}.
Menu item in a drop down submenu has some differences for Qt apps. It is often child of top-level window. Example for WireShark (which is Qt5 app): wireshark.py, line 58. Maybe .select() is more proper action for this menu item.
Sripad Sahu
@sripad96_gitlab
okay.. thank you....
I will look into the examples and try to solve it
one more doubt i had
how to switch tabs ????
Vasily Ryabov
@vasily-v-ryabov
I need to take a look. I have seen many cases for Qt apps where tabs are owner drawn. It might be a problem.
Vasily Ryabov
@vasily-v-ryabov
For WireShark it works this way: app.Wireshark_Capture_Interfaces.child_window(title="Input", control_type="TabItem").click_input() (not obvious, can be improved for Qt5 apps).
Vasily Ryabov
@vasily-v-ryabov
@sripad96_gitlab I've submitted an issue to keep it in mind for the future: pywinauto/pywinauto#561
Sripad Sahu
@sripad96_gitlab
@vasily-v-ryabov thank you. Yes few of the tab items are owner drawn so i have to use the click() function to access them, personally which i dont like. It would be very helpful if we can get some function to access the owner drawn items.
Vasily Ryabov
@vasily-v-ryabov
It’s very hard to work with owner drawn items. Some of them may need DLL injection with some Qt-specific stuff or other deep investigation. The result is not guaranteed anyway. The easiest workarounds are (1) image recognition (using “lackey” in Python) or click_input by coordinates relative to nearest recognized window/element on the same form which should be more reliable than screen-wide click.
Sripad Sahu
@sripad96_gitlab
okay
and is there any way i can get a list of all the options(items) available in the particular window?