jimbo Posted December 5, 2005 Report Share Posted December 5, 2005 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 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.