I am trying to press a button using a call pattern.
InvokePattern ipAddMPButton = (InvokePattern)aeAddMPButton.GetCurrentPattern(InvokePattern.Pattern); try { ipAddMPButton .Invoke(); } catch (System.Runtime.InteropServices.COMException e) {
It throws a COMException, and I can't figure out why?
When I run this code, the button is actually pressed and the functionality works well. But then it just stops for a while and throws this exception.
source share