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.
script to Create a Scheduled Task
Moderators: Dorian (MJT support), JRL
script to Create a Scheduled Task
Last edited by Bemintrth on Thu Oct 29, 2020 11:17 pm, edited 3 times in total.
- 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
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?