I try to create test tool application use C# UIAutomation library. The example code is:
Automation.AddAutomationFocusChangedEventHandler(
new AutomationFocusChangedEventHandler(OnAutomationFocusChanged));
When I detect focus changed, I need to get type of event(left/right click or keyboard pressed). Is it possible to do this an How can I find these value in method OnAutomationFocusChanged()?