I just can't get Pywinauto to work. Basically I want it to open the system settings ( figured that out already) and then click "Change Settings" but in my language (German) which would be "Einstellungen ändern". I've tried this:
from pywinauto import Desktop, Application, keyboard
from pywinauto.application import Application
app = Application().start("control system")
#so far it works, after that I've tried two options
#1
app.window_(title_re="System").window_(title="Einstellungen ändern").click()
#2
app.window_(best_match="System" ).window_(best_match="Einstellungen ändern").click()
I've tried both of these options with the AutomationId, which I got from Inspect.exe, instead of "System" or "Einstellungen ändern" and I've tried ClickInput()
instead of click()
.
Any ideas?