Does any one know how to make Macro Scheduler terminate automatically after running a series of scripts.
Is there a command line option which can be used to terminate Macro Scheduler.
Terminating Macro Scheduler
Moderators: JRL, Dorian (MJT support)
Why not just run the scripts from the command line in the first place. No need to have Macro Scheduler running at all. Just run the macro on it's own - Macro Scheduler will start, run the macro and then exit:
msched.exe macroname
msched.exe macroname
MJT Net Support
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Dick, I know that you are proficient with Macro Scheduler, but can you try again to explain the issue? Macro Scheduler stops running now when a script is completed. And I know you know that, so something needs to be made more clear about your problem.
Are you meaing you want to schedule a script to run once, and then do not want the scheduler running in the background waiting to trigger another script when the time comes up?
If that is the case, try using Windows Scheduler tools to execute Macro Scheduler calling the macro you need vs. using Macro Scheduler for scheduling. Or you can compile the script and have the Windows Scheduler call that exe file.
Different versions of Windows have different schedulers. See AT command with XP/NT/2K systems.
Are you meaing you want to schedule a script to run once, and then do not want the scheduler running in the background waiting to trigger another script when the time comes up?
If that is the case, try using Windows Scheduler tools to execute Macro Scheduler calling the macro you need vs. using Macro Scheduler for scheduling. Or you can compile the script and have the Windows Scheduler call that exe file.
Different versions of Windows have different schedulers. See AT command with XP/NT/2K systems.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Bob,
I don't have an issue. Simply trying to press the original poster's question to discover if there is a way to terminate the MS software at the completion of a script.
You are correct, if I wanted to schedule such an event I would use Microsoft to schedule a batch file that would run a script in command line mode or simply run a compiled script. However, that's not really the point. I think Keytecstaff has a valid and interesting question that did not receive an answer. Perhaps the answer is no? If that is the case, I'd like to see that answer preceed the workaround.
Thanks for listening,
Dick
I don't have an issue. Simply trying to press the original poster's question to discover if there is a way to terminate the MS software at the completion of a script.
You are correct, if I wanted to schedule such an event I would use Microsoft to schedule a batch file that would run a script in command line mode or simply run a compiled script. However, that's not really the point. I think Keytecstaff has a valid and interesting question that did not receive an answer. Perhaps the answer is no? If that is the case, I'd like to see that answer preceed the workaround.
Thanks for listening,
Dick
Well you could send keystrokes to Macro Scheduler. Or if the close button is not set to minimize just do CloseWindow>Macro Scheduler 7.*
MJT Net Support
[email protected]
[email protected]
Thank you support.
I've been using this software for a couple of years and never realized that you could close Macro Scheduler from the main screen by picking File then Exit. I had never tried that sequence before. What was the point, I knew it would just hide the window. After all, that's what happens if you pick the "X" in the upper right hand corner. That's even what occurs if you press ALT + F4.
This short script will completely close Macro Scheduler:
SetFocus>Macro Scheduler*
Wait>0.5
SetFocus>Macro Scheduler*
Press ALT
send>fx
Release ALT
I'm not sure why but I have to set focus twice if the main screen is not already visible.
Excuse me while I go clean the egg off my face...
Dick
I've been using this software for a couple of years and never realized that you could close Macro Scheduler from the main screen by picking File then Exit. I had never tried that sequence before. What was the point, I knew it would just hide the window. After all, that's what happens if you pick the "X" in the upper right hand corner. That's even what occurs if you press ALT + F4.
This short script will completely close Macro Scheduler:
SetFocus>Macro Scheduler*
Wait>0.5
SetFocus>Macro Scheduler*
Press ALT
send>fx
Release ALT
I'm not sure why but I have to set focus twice if the main screen is not already visible.
Excuse me while I go clean the egg off my face...
Dick