script to Create a Scheduled Task

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Bemintrth
Newbie
Posts: 2
Joined: Thu Feb 27, 2020 7:09 am
Location: Michigan

script to Create a Scheduled Task

Post by Bemintrth » Thu Feb 27, 2020 6:18 pm

I need to create a method to create a scheduled task after receiving input from a dialog. I'll have the main macro create a 'temp macro' but i need to schedule that with info from the main dialog. is there a way to do that?

thanks a lot.
Last edited by Bemintrth on Thu Oct 29, 2020 11:17 pm, edited 3 times in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: script to Create a Scheduled Task

Post by Marcus Tettmar » Fri Feb 28, 2020 12:54 pm

There is currently no way to create a scheduled task in Macro Scheduler without first closing Macro Scheduler and directly manipulating it's dat file. But there are a number of things you could do such as:

1. You could have your macro create a scheduled task in Windows task scheduler to run the macro via the command line.

2. You could create 'controller' macro which runs continuously with a loop, or on a tight schedule, which monitors a database or INI file for example. The db/ini file would contain details of all your scheduled macros, such as the time it should fire etc. When the time/conditions match it would launch that macro via either the Macro> or command line via Run. Your dialog macro would put an entry into this INI file.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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