I have a legacy program, over 10 years old, which I am trying to automate to extract data for a new system. The problem is that i can write the flow, run it to test it and it seems all ok. Then I make a change and/or close the old program and restart it, and some of my UI automation controls can't find the window to work.
I have tried several different ways to keep the focus, but I am really struggling with it. I am running the latest update version on Windows 11( MSI install, not MS Store version)
I tried launching the software and logging in with PAD, etc. I wanted to try using a handle to pull the focus, but can't seem to find any consistent instructions on how to create/locate a handle.
Tried asking chatgpt but it can't make up it's mind which version it is talking about and keeps telling me to use commands that don't exist!