How do I enable accessibility on Teams using C# code

%3CLINGO-SUB%20id%3D%22lingo-sub-1817494%22%20slang%3D%22en-US%22%3EHow%20do%20I%20enable%20accessibility%20on%20Teams%20using%20C%23%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1817494%22%20slang%3D%22en-US%22%3EI%20am%20working%20on%20a%20desktop%20plugin%20which%20works%20on%20MS%20Teams%20desktop%20app.%20In%20short%20this%20plugin%20is%20an%20overlay%20which%20sits%20on%20top%20on%20MS%20Teams%20app%20and%20tracks%20elements%20(eg.%20Chats%2C%20Calendar%20etc.).%20To%20track%20and%20find%20elements%20by%20plugin%2C%20accessibility%20settings%20must%20be%20enabled%20for%20MS%20Teams.%20This%20can%20be%20done%20manually%20by%20going%20to%20accessibility%20setting%20and%20enabling%20below%20checkboxes%20(shown%20in%20screenshot%20below).%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20the%20question%20is%2C%20how%20can%20I%20reliably%20do%20it%20from%20the%20code%20preferably%20using%20C%23%20code.%20Please%20comment%20if%20you%20need%20more%20details%20about%20the%20question.%3CBR%20%2F%3E%26amp%3Bnbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26amp%3Bnbsp%3B%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1817494%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccessibility%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAutomation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor
I am working on a desktop plugin which works on MS Teams desktop app. In short this plugin is an overlay which sits on top on MS Teams app and tracks elements (eg. Chats, Calendar etc.). To track and find elements by plugin, accessibility settings must be enabled for MS Teams. This can be done manually by going to accessibility setting and enabling below checkboxes (shown in screenshot below).

Now the question is, how can I reliably do it from the code preferably using C# code. Please comment if you need more details about the question.
 

 
0 Replies