views:

228

answers:

1

Hi All,

I'm making a program that does stuff (Sorry, I'm not allowed to say what it is), but I want to be able to let Windows Speech somehow "know" that there are linklabels and buttons on my Forms, so that when I say "Next" or "Start" etc, it will click those buttons. Just like when you are using IE and you are on Google.com and when you say "Search" it will perform a click on the search button and begin the search.

The problem is that it doesn't seem to know that buttons/linklabels or anything like that exist in C# windows forms applications. Is this something that we must do ourselves?

Thanks

Bael

A: 

Windows Speech Recognition uses MSAA and UI Automation to find the buttons, links, etc., on your application. So, if your app has the appropriate AccessibleRole and AccessibleName definitions set on your controls, WSR should find them just fine.

Eric Brown
thank you very much eric brown, just the answer i was looking for. :)
baeltazor