Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in #include file "G:\AHK\UIA Interface.ahk": 0x80131509- UIA E INVALIDOPERATION #50

Open
tallnn opened this issue Mar 10, 2024 · 2 comments

Comments

@tallnn
Copy link

tallnn commented Mar 10, 2024

Dear author:
When I use the UIAViewer to view the element of windows programs, But the .ahk file showed this error message.

Whenever I run for a long time, I always report an error after an indefinite period of time.
How should I solve this problem?
thanks

Snipaste_2024-03-11_01-36-32

@Descolada
Copy link
Owner

The error is indicating you are using Click on an element and it's failing, most likely because the element has been invalidated/destroyed in the time before first fetching it and calling Click. You could capture the error with a try...catch block and if the error is thrown then re-find the element and try again.

@tallnn
Copy link
Author

tallnn commented Mar 28, 2024

Thank you very much for your answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants