Quantcast
Viewing all articles
Browse latest Browse all 585

How to unblock UIAutomation when Invoke triggers modal dialog

Using UI Automation I invoke a button in Excel 2010 (let's say the View > Zoom Button) which triggers a modal dialog.

My problem is that I can't use UIAutomation until after I (manually) close that modal dialog.

The problem can be easily replicated by using UISpy.exe to trigger the invoke on the Zoom Button, as long as the modal dialog is open UISpy will not update anything and freeze.

I found some older, similar questions, but so far the recommendations (put the Invoke into a background MTA thread didn't help).

http://social.msdn.microsoft.com/forums/en-US/windowsaccessibilityandautomation/thread/7f0bdc7c-be85-4fde-9f8a-cbb3f16ba5f4/

Any Ideas how I could invoke without blocking?


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>