0

I am using UIAutomation and precisely UIAComWrapper from UI Automation COM-to-.NET Adapter.

I am trying to scrape the contents of the target Window and it works but I noticed a problem.

When I access the target window the screen refreshing on the window slows down. It looks like the UIAutomation is interfering with the target window. Is it possible ? Or maybe the slowness has another reason ?

Alain O'Dea
  • 21,033
  • 1
  • 58
  • 84
Patrik
  • 1,286
  • 1
  • 31
  • 64
  • It can be possible of course but it may be an indirect cause, for example: http://stackoverflow.com/questions/31091769/ui-performance-penalty-when-using-uiautoamtion – Simon Mourier Jun 27 '15 at 18:33
  • @SimonMourier: Was there a reason you linked back to this very question in your comment? – Martin Noreke Jun 27 '15 at 19:37
  • I messed things up apparently :-) here is the link: http://stackoverflow.com/questions/5716078/wpf-performance-issue-due-to-ui-automation – Simon Mourier Jun 28 '15 at 05:15
  • I am not sure but I suspect the UIAutomation client somehow injects in the target process and searches the tree. I think it is possible because I tried to scrap FLASH objects running in Chrome browser and it works. When I tried to scan every 50 ms the FLASH refresh rate and playback decreased visibly. – Patrik Jun 28 '15 at 09:02

0 Answers0