Hi
I was wondering what will happen if scheduled macros overlap?
I have macros setup to run on a regular basis. Each macro has some error checking code in them so that if an error occurs, the macro pauses with a modal message I can fix whatever didn't go right and then let the macro continue.
If one of my macros is paused because it ran into an error and then another scheduled macro starts while the first is still paused what will macro scheduler do? Is it possible to have macro scheduler stack them in a queue?
(I haven't actually encountered this yet but figured I should find out before I do!)
Thanks
________
Chevrolet S-10 Blazer
What if Scheduled Macros Overlap?
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 10
- Joined: Tue Jun 26, 2007 2:46 pm
What if Scheduled Macros Overlap?
Last edited by philmcmannis on Sat Feb 12, 2011 4:02 am, edited 1 time in total.
What happens if macros overlap depends on what the macros do. If both are performing GUI tasks they will interfere with each other. Since this is Macro Schedulers strong suit, its very likely your macros cannot run simultaneously.
What I've done to "stack" scheduled macros is create a separate macro that has multiple macro> function calls. the Macro> function suspends the rest of the script until the called macro finishes, therefore the macros run sequentially and without interference no matter how long each macro takes. I also put a short wait in between. I only schedule the macro below. I do not schedule the listed macros.
Something like:
What I've done to "stack" scheduled macros is create a separate macro that has multiple macro> function calls. the Macro> function suspends the rest of the script until the called macro finishes, therefore the macros run sequentially and without interference no matter how long each macro takes. I also put a short wait in between. I only schedule the macro below. I do not schedule the listed macros.
Something like:
Code: Select all
Macro>C:\Program Files\MJT Net Ltd\Macro Scheduler\Make daily material database.scp
Wait>10
Macro>C:\Program Files\MJT Net Ltd\Macro Scheduler\Purchase.scp
Wait>10
//Macro>C:\Program Files\MJT Net Ltd\Macro Scheduler\ship barcode.scp
Wait>10
Macro>C:\Program Files\MJT Net Ltd\Macro Scheduler\Sales Trend.scp
Wait>10
Macro>C:\Program Files\MJT Net Ltd\Macro Scheduler\Balance Requirements.scp