A good question, so first thing first you have to start your application for which you need executable. app = Application(backend="uia").start('notepad.exe') Now, if you have a popup/dialog on the application then you need to get your dialog using it's name like this. # describe the window inside Notepad.exe process dlg_spec = app.UntitledNotepad
Prashant : I am not getting how to get Login title.. Sorry... I am getting below error after 64 bit installation UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python) warnings.warn(
It won't matter much even if the window has a complicated name. Two things to do here- 1. First use print_control_identifiers to get the list the names of that window that you can use. 2. Choose the one which seems easy enough
@@PrashantSharmaOfficial thanks for your reply, but I mean when I do print_control_identifiers, I have to put the window name before it in a special form like (app.UntitledNotepad.print_control_identifiers). So, how can I do this with a window title has many special characters and numbers?
doesnt help i am trying to automate Gamerange application but my pycharm always throw error pywinauto.findbestmatch.MatchError: Could not find 'GameRanger' in 'dict_keys([])'