Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

HOWTO Deal with UAC vs UI-Automation.

$
0
0

Please help,

We have a C#/.NET apoplication that uses Interop.UIAutomationClient, and ultimately calls such functionality as the "ElementFromPoint" (https://msdn.microsoft.com/en-us/library/windows/desktop/ee671538(v=vs.85).aspx ).

We do not know how to deal with UAC User Account Control), if it were to block "ElementFromPoint" from working.

First off, there is no documentation in that link, to explain, what kind of error we would get back, if our app were to try and use "ElementFromPoint" on say IE11. Preferably, we'd get some error, saying UAC is at fault, contact you administrator to do X, Y, Z to let our application run UI-Automation on IE11.

After that, what would be the best approach for our app, to comply better with UAC, so that some administrator could identify it, as needing UAC acccess to say IE11.

EDIT...

If this will help clarify what we hope to learn, we'd like to know how to make UAC allow a specific C# application, that uses UI-Automation with such function calls as "ElementFromPoint", be allowed to run its UI-Automation functionality to say IE11. Preferably to know of a way that the C#can detect if it is allowed to run its UI-Automation, on say IE11, and if not, signal the user as what to do.



Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>