I have a macro that uses the CaptureControlBeneathMouse and GetControlClass functions. Sometimes the functions return an error when the control does not exist. This is probably true as the screen repaints (without any visible trace to the user). The problem that I have is when the error is generated it aborts the macro. Is there anyway to trap an error like this and handle it rather than aborting the macro? Below is a code I am using.
Mouse Left Button Click
Delay 0.5 Seconds
// Capture Control where mouse was clicked
Capture Control to %C8%
Variable Get Control Class: %C8% to %T18%
Thanks,
jimbo