Stopping a Macro


Occasionally it may be necessary to stop a running macro before it has finished. There are several ways to stop a running macro.



Stopping a Macro

If the Running icon displays when a macro is running, right mouse click on the icon in the notification area to stop the macro. Or press the default key sequence of Scroll Lock and Pause to stop the macro. Change the default to Win + ` or the Pause key by going to Options > Preferences > Playback - Miscellaneous tab.


Any of these options will cancel a macro that is playing. However, please note that macros that consist of many keystrokes can send the keystrokes rather quickly and they are buffered in Windows. Once such commands have been buffered in Windows, aborting a macro does not cancel them. In these cases, it may appear that the abort command did not work when in reality the macro has already finished issuing its commands and Windows is now processing them.


If more than one macro is running, all macros will be stopped when initiating any of the above mentioned actions.


Note: The Timed Delay in Seconds and the Wait for Time to Elapse commands suspend Macro Express for the amount of time specified. During this delay time the macro cannot be terminated.



Macro Stop

The Macro Stop command stops the execution of a macro before the macro steps have completed. Insert the Macro Stop command into the macro script. Whenever this line in the macro is reached, the macro terminates. In most cases this command is used in conjunction with a conditional statement. For example, if a desired condition is not met, terminate the macro.