Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
-
stbede77
- Newbie
- Posts: 18
- Joined: Wed Oct 25, 2006 7:04 pm
Post
by stbede77 » Fri Feb 23, 2007 12:33 pm
I have been working on trying to get my macro to read a text file that has the below setup. Now I know you can do this with some easy using Macro Scheduler itself but due to some lack of capability for my own needs I would like to be able to put the date and times I want to start an exe and then it read "Program 1" at the beginning of the line and start the predefined program. I have been screwing around with GetDate>date, Sec>Seconds, Min>Minutes, Hour>Hour. But havent been able to get much done. If someone could point me in the right direction it would be a big help.
Code: Select all
Program 1 (Start: 2/23/2007 6:10:16 AM)
Program 2 (Start: 2/23/2007 6:35:31 AM)
Program 3 (Start: 2/23/2007 8:33:08 AM)
Program 4 (Start: 2/23/2007 7:38:21 PM)
-
pgriffin
- Automation Wizard
- Posts: 460
- Joined: Wed Apr 06, 2005 5:56 pm
- Location: US and Europe
Post
by pgriffin » Sat Feb 24, 2007 2:14 pm
Please explain.
Your text file is populated from some other source and you want to have MacroScheduler read the file, check the date and time, then run the associated macro?
If so, some pseudo code might look like
readfile>TextFile,rData
sep>rData, (Start: ,rSeg
// now rSeg_1 will contain Program 1 and rSeg_2 will contain the date and time
use Sep on the respective rSeg's to parse the date from the time.
Let us know if this is not what you are trying to do
-
stbede77
- Newbie
- Posts: 18
- Joined: Wed Oct 25, 2006 7:04 pm
Post
by stbede77 » Sun Feb 25, 2007 6:53 am
Yeah thats what I did and I think I got it working about right now