index > Microsoft UI Automation > Catching all events for an AutomationElement.

Catching all events for an AutomationElement.


How can I catch all the events for a particular AutomationElement. I'm looking for some functionality on the lines of UISpy's event display.
Srivatsn N

The UIA model is to allow the client to specify exactly which events they are interested in by using the API to add specific event listeners.

Please see the topic in the SDK UI Automation Events For Clients.

There is not an API to register all event handlers for an element (even though UISpy enables this) because that will make performance slow. The recommendation is for the client to specify exactly what information they are interested in listening for.

Please let me know if you have any other questions.


Thanks!

Thomas

Thomas Logan - MSFT
reply 2

You can use google to search for other answers

 

More Articles

• Textpattern giving exception by UIAutomation on AMD64
• C++ API Problems
• MenuStrip is still missing from UISpy
• Radio Button Patterns in WPF?
• UISpy missing from the February CTP
• Documentation and ObjectFromPoint?
• UIA and WinForms 2.0
• Tree Walker - missing control elements
• AutomationFocusChangedEvent
• Automation.AddAutomationEvent and WinForms
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• Automation element for PasswordBox
• Extracting text from Third Party Controls
• Issue: "Specified element is alread
• control ids
• Automation.AddAutomationEvent and WinForms
• Tree Walker - missing control elements
• How to get the font information of text
• chevron command bar
• Custom control patterns
• UI automation vs. Input classes (Keyboar
• Preventing UI Automation access to an ap
• Custom Property Conditions
• Test Automation for WPF apps
• Database of MSAA default actions
• Identification of elements in a webpage

Hot Articles

• Catching all events for an AutomationEle
• Hang with InvokePattern - Invoke
• chevron command bar
• ClientSideProviders
• UI Automation for automated GUI testing?
• Documentation and ObjectFromPoint?
• AutomationFocusChangedEvent
• Automate testing Website using C#
• Extracting text from Third Party Controls
• Welcome to Microsoft UI Automation Forum
• Attchment Contorl - UI Automation
• How to close multiple dialgs opened by o
• AutomationID and Templates
• n00b vs. UI Automation
• Automation.AddAutomationEvent and WinForms

Recommend Articles

• UISpy missing from the February CTP
• Custom Property Conditions
• Extracting text from Third Party Controls
• Automating WPF apps with VSTS
• Test Automation for WPF apps
• Issue: "Specified element is alread
• Radio Button Patterns in WPF?
• C++ API Problems
• Radio Button Automation in WPF
• UIA and WinForms 2.0
• Raising events for an application
• UIAutomation support for downlevel OS
• Welcome to Microsoft UI Automation Forum
• Unable to set focus on a list item
• AutomationID and Templates