http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/