Wait for accessibilityId
Posted: 28 Aug 2020, 05:17
Hello Guys!
I have an automation that is unreliable because its dependant on time delays rather than waiting for a UI element to appear or disappear.
I find that this has to be doable in ahk, but inner window component seem to be not as first class citizens as handling just the window as with WinWait or similar.
We can use Window Inspector to get the ui's ids/name but its not clear for me how to use them inside ahk... maybe the fact that ahk can be used to create GUI and instructions on manipulating those are interfering somewhat with this subject.
For example I want to connect to a VPN that requires terms&conditions acceptance before establishing the connection, this involves a lot of clicks that is madness if you have to connect/disconnect many times during the day. My script can not be reliable without big timeouts but that would defeat the purpose of scripting it.
So I wish at least for a tutorial on using ahk with accessability id/names, and making using them just as easy as waiting for a window to appear or disappear.
Incorporating such calls would really improve AHK... or making these more visible.
There are also the brute OCR screen readers which could be incorporated for similar use, here is an example for that: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=17834&sid=b942373bc8cc2801e5f02e733d3917a1
Thanks!
I have an automation that is unreliable because its dependant on time delays rather than waiting for a UI element to appear or disappear.
I find that this has to be doable in ahk, but inner window component seem to be not as first class citizens as handling just the window as with WinWait or similar.
We can use Window Inspector to get the ui's ids/name but its not clear for me how to use them inside ahk... maybe the fact that ahk can be used to create GUI and instructions on manipulating those are interfering somewhat with this subject.
For example I want to connect to a VPN that requires terms&conditions acceptance before establishing the connection, this involves a lot of clicks that is madness if you have to connect/disconnect many times during the day. My script can not be reliable without big timeouts but that would defeat the purpose of scripting it.
So I wish at least for a tutorial on using ahk with accessability id/names, and making using them just as easy as waiting for a window to appear or disappear.
Incorporating such calls would really improve AHK... or making these more visible.
There are also the brute OCR screen readers which could be incorporated for similar use, here is an example for that: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=17834&sid=b942373bc8cc2801e5f02e733d3917a1
Thanks!