Terminating Macro Scheduler

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Keytecstaff
Newbie
Posts: 1
Joined: Thu Aug 25, 2005 12:16 pm

Terminating Macro Scheduler

Post by Keytecstaff » Thu Aug 25, 2005 12:19 pm

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.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Aug 25, 2005 1:19 pm

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
MJT Net Support
[email protected]

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sat Aug 27, 2005 5:03 am

Suppose one wanted to use Macro "Scheduler" to schedule a script to run and then terminate Macro Scheduler when the script closes? Is it possible to do this?

Thanks,
Dick

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Aug 27, 2005 5:53 am

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.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sat Aug 27, 2005 6:20 am

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

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Aug 27, 2005 7:03 am

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]

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sat Aug 27, 2005 7:46 pm

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

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts