Jump to content
Macro Express Forums

Stop Macro A - Run Macro B


Recommended Posts

Hi all,

and thanks again for help me out in the past.

I have search in the forum but couldn't find the answer...

I'm trying to set a schedule that will stop any macro that is running in that moment and start another one.

Beside the schedule time I cannot find the way to stop the macro (without me pressing the "Macro A abort" button and "macro B resume" button).

Any help on this one?

Ty

Link to comment
Share on other sites

There is no command to stop another macro. The best method of stopping a macro as you suggest is to have it stop itself. IE have it monitor for some external clue to stop. In the past I have written complex macros that ran on multiple machines at the same time. I had another macro that controlled them all and I did this by using a network INI file. When I wanted them to all ceases I changed one of the parameters to "Stop" and on the next iteration they would check and see I wanted them to stop and do so.

 

There is no way to get a list of running macros either. The best way to do this is to have your macros all record someplace when they start and when they end. EG an INI file or Registry value for each macro where the macro would change the value to 1 when running and zero when done. Now you can review that with another macro at any time to see which are running.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...