I'm using autoinput to query a screen which shows the battery level of bluetooth connected robot. I can do the query manually but when I try to automate it always opens a new copy of the app. Then I tried using action click Recent Apps with the text of the app and it works until the order of the apps changes. It always selects the second app. And is there better way to read the apps battery level? Any help would be greatly appreciated!