freddy
Junior Member
Posts: 14
|
Post by freddy on Aug 2, 2021 4:49:41 GMT
I can not get my macros to work with the task scheduler so I tried creating a macro that would run within the Mini Mouse Macro app. My goal is to have 1.mmmacro run 12:25 am and 2.mmmacro run at 12:27 am every night but as soon as I hit play 1.mmmacro runs, then 2.mmmacro runs, and then I receive these two playback errors: 1 | IF | TIME | 12:25:00 AM | CONTINUE - Condition execution error [Unexpected Internal Error]:Index was outside the bounds of the array. 3 | IF | TIME | 12:27:00 AM | CONTINUE - Condition execution error [Unexpected Internal Error]:Index was outside the bounds of the array.
And this is the macro that I created to run macros 1 and 2:
1 | IF | TIME | 12:25:00 AM | CONTINUE
2 | RUN ACTION | RUN MACRO INLINE | C:\Users\josep\Desktop\MiniMouseMacros\1.mmmacro
3 | IF | TIME | 12:27:00 AM | CONTINUE
4 | RUN ACTION | RUN MACRO INLINE | C:\Users\josep\Desktop\MiniMouseMacros\2.mmmacro
What am I doing wrong?
|
|
|
Post by Steve on Aug 3, 2021 6:54:09 GMT
freddy the problem is that the syntax is wrong. Your IF condition is failing because it has no 'operator'. Have a look here for some example of the TIME condition www.turnssoft.com/conditions.html#time. When you build your IF condition use the 'Add Condition' tool.
|
|
freddy
Junior Member
Posts: 14
|
Post by freddy on Aug 3, 2021 19:32:30 GMT
Steve,
I was trying to type the code in. I didn't realize that there was the Add Condition tool.
Thanks!
|
|
freddy
Junior Member
Posts: 14
|
Post by freddy on Aug 3, 2021 20:35:42 GMT
Thanks for your help Steve, that fixed my problem!
Below is the macro that you just helped me with. I plan on creating an If Time code line a Run Action code for each hour of the day and let that run most of the time on my laptop, and as I mentioned before these macros will be running in the Mini Mouse Macro app. My concern is that running these macros all the time inside of the Mini Mouse Macro app will cause more wear and tear of my laptop than using the Microsoft Task Scheduler. If I run a macro every hour is it better to use the Microsoft Task Scheduler or run the macros inside of the Mini Mouse Macro app?
1 | IF | TIME | 04:15:00 PM | IS | CONTINUE 2 | RUN ACTION | RUN MACRO INLINE | C:\Users\josep\Desktop\MiniMouseMacros\1.mmmacro 3 | IF | TIME | 4:20:00 PM | IS | CONTINUE 4 | RUN ACTION | RUN MACRO INLINE | C:\Users\josep\Desktop\MiniMouseMacros\2.mmmacro
Thanks again Steve!
|
|
|
Post by mrclicker on Aug 4, 2021 12:07:05 GMT
Just a thought ..
it occurs to me that this job is better suited to be replaced by the built in windows Task Scheduler.. create a scheduled task that is triggered by whatever event you want, in your case the time of day, and call the macro(s) then. this way you dont need to have the MMM running all day everyday, it would just be called upon by Windows. and will be less prone to errors.
|
|